What is an API? Reading Assignment

1) What is an API?

Application programming interface is the part of a software component that is accessible to other components or the way programs can interact with each other. The API defines the protocol for communicating with a component.

2) In the article the author compares Java API to Twitter API. What is the main difference between these two APIs?

Java API is libraries, packages and modules. Collections of code. Twitter API is a web-based JSON API.

3) The section in the article about abstraction is important, try to understand it and write down an abstraction from your daily life.

My morning coffee is made after pressing one button. The machine turned on and used the water and coffee grounds to produce a “welcome to a new day” freshly brewed cup of coffee

1 Like
  1. An API is an Application Programming Interface. It is a way to interact with code from an external source. Using APIs other programs can call functions in the code, query states and more.
  2. the article must have changed because there was no mention of twitter or abstraction
  3. see above
  1. What is an API?
    Answer: Is an interface that software developers use to progmatically interact with software components or resources outside of their own code.

  2. In the article the author compares Java API to Twitter API. What is the main difference between these two APIs?
    Answer: The difference is that they interface with different types of clients

  3. The section in the article about abstraction is important, try to understand it and write down an abstraction from your daily life.
    Answer: When my dog goes to the door I know he needs to go outside to the bathroom, when he is by his bowl its time for food.

1 Like

1.) An “API” is short for “Application Program Interface”.
2.) Language-level vs. application level.
3.) Lock and key. Open. Close. Limited interface.

1) What is an API?
An API is an interface that software developers use to programmatically interact with software components or resources outside of their own code. An even simpler definition is that an API is the part of a software component that is accessible to other components.
2) In the article the author compares Java API to Twitter API. What is the main difference between these two APIs?
JAVA APIs allow devs to do work and reate functionalities. install the package and you have it Twiter APIs allow you to interact with Twitter
3) The section in the article about abstraction is important, try to understand it and write down an abstraction from your daily life.
When I payback debt, everything is automated. money is taken out because I set it up

1-What is an API?
An API (Application Programming Interface) is a set of rules that simplifies complex programming tasks by providing pre-built functions.

2-Difference Between Java API and Twitter API:
Java API has predefined commands for users to select, whereas Twitter API is web-based, using JSON and HTTP commands to return results.

3-Daily Life Abstraction Example:

Every evening, I turn on the TV to watch the news. As soon as I press the power button on the remote, the TV automatically switches to my favorite news channel. I don’t need to manually search for the channel every time. This process of pressing one button to trigger a series of actions (turning on the TV and switching to a specific channel) without having to manage each step individually is an example of abstraction.

  1. What is an API?

    An API is an interface used to programmatically interact with external software components or resources, making them accessible to other systems or applications.

  2. In the article, the author compares Java API to Twitter API. What is the main difference between these two APIs?

    The Twitter API is a web-based API that allows developers to interact with Twitter’s platform to retrieve or post data, requiring internet access and authentication. In contrast, the Java API is a collection of built-in libraries and tools within the Java programming language used for building applications, and it does not require internet access.

  3. The section in the article about abstraction is important, try to understand it and write down an abstraction from your daily life.

    Driving a car is an example of abstraction, where the driver uses simple controls like the steering wheel and pedals without needing to understand the engine’s mechanics. The car’s complex systems are hidden, allowing the driver to focus only on the essential tasks of operating the vehicle.