What is an API? Reading Assignment

Answer:

As API is known as Application Programming Interface. It basically simplify how user interact without any hassle which the API itself does all the complexity work which caters conveniences to end user.

Twitter API is a web-based JSON API which allows developers to programmatically interact with Twitter. Any request over the internet must be accessed by Twitter and using Twitter API is by and large within the Twitter network and community.

Java API on another hand, is a library of software component make available to any one who has installed Java Development Kit.

An abstraction of my daily life would be as simple as turning on the TV and click a button to access the latest news and have all my preference content be broadcast out within a fraction of a minute.

1 Like
  1. API is a tool that helps progammers to build codes/protocols
  2. One is generic API the other one is specific.
  3. An app that sends me 5 most read stories avoid me to read all stories.
1 Like

1) What is an API?
Application Programming Interface is the specifications(language) for the way servers and clients communicate with each others.
2) In the article the author compares Java API to Twitter API. What is the main difference between these two APIs?
Java API is included in the Java Development Kit while the Twitter API ia a web-based API
3) The section in the article about abstraction is important, try to understand it and write down an abstraction from your daily life.
Turning the tap on and the water flows out. Magical!haha. Or turning the TV on and the world flood in my living room.COOL.

1 Like

1) What is an API?
Application Programming Interfaces - these hide complexity from developers, extend systems to partners, organize code and make components reusable. An API programmatically makes interaction with separate software components or resources possible.

2) In the article the author compares Java API to Twitter API. What is the main difference between these two APIs?
The Java API is a library of software components available “out of the box” to anyone who has installed the Java Development Kit. The Twitter API is a web-based JSON API. It must be accessed by making requests over the Internet to services that Twitter hosts.

3) The section in the article about abstraction is important, try to understand it and write down an abstraction from your daily life.
Ready made food that you throw in the microwave so you don’t have to cook.

1 Like

1) What is an API?
API is an application to connect different code components running on the same machine. As an abstraction it includes codes for processes, that otherwise would be needed to program from scratch. Therefore it is timesaving.
2) In the article the author compares Java API to Twitter API. What is the main difference between these two APIs?
Java API contains common tasks that increase the productivity of the developer. he Twitter API allows developers to programmatically interact with Twitter data. Unlike the Java API, the Twitter API is a web-based API, written in JSON. To make requests over the Internet to services that Twitter hosts, the internet is required.
3) The section in the article about abstraction is important, try to understand it and write down an abstraction from your daily life.
Catfood pouches that provide the well made food ready to serve for my cat.

1 Like
  1. An API is an Application Programming Interface, that is a set of defined rules for communicating with a third parry application.

  2. The main difference between that Java API and Twitter’s API is that Twitter’s is web based API and as such can only be called by calling the relevant URLs over the internet.

  3. I think an example would be ordering online groceries. You simply fill your online basket and checkout and then the goods arrive on the given delivery day. The gathering together of produce from supply chains across the world is all removed from the end user and replaced by a few clicks of a mouse.

2 Likes

1 - An API is a predefined set of codes which enables a front end user to send instructions, get a set of results back based on the predefined code.

2 - Java is a more general API, because of its multiple use cases and the number of apps that use Java. Twitter, is more specific, every use case in this instance will have something to do with Twitter only.

3 - I’m getting a coffee (black no sugar of course), toastie and a muffin. The Barista is the API in the sense that I don’t need to know where the coffee beans come from, how they grind them or how my toastie is heated up and for how long for optimal eating pleasure.

1 Like

Reading Assignment: What is an API?

An API (Application Programming Interface) is a specification (set of rules) for programmatically interacting with a piece of software. It allows for applications to communicate with each other. Either between the frontend and backend parts of an application, between the components of a single piece of software, or between different applications all together, sharing information and interacting.

The main difference between the Java and Twitter APIs is the way a program interacts with them.

The Java API is provided as a part of the JDK and defines how to interact with classes within Java. It provides a generic set of interactions that make programming in Java easier.

The Twitter API is web based, allowing clients to interact with the platform over the internet. It is used by making a web request and returns a response. For example, searching for tweets by a specific users or posting a new tweet.

At work we have built an abstraction for requesting new servers. The user goes to a web page, selects the number and size of new servers they need, and presses submit. In the background many processes are kicked off to complete their request: tickets for approval from management, logging of costs to finance, provisioning of the new servers, and updates to the requester with access information when the process completes.

2 Likes

Indeed, because Twitter API is a web-based API, mean that you can only use it to do something with Twitter data only :nerd_face:

If you have any more questions, please let us know so we can help you! :slight_smile:

Carlos Z.

Excellent answers, It’s easy to understand. Please keep them like that :muscle:

Carlos Z.

1 Like

Thanks @thecil. So can a Twitter API be used with a Facebook API because that too is web based or would you describe Twitter API as native?

  1. What is an API?
    API is a way to use the content inside another software or resource, database. It is made to reduce the duplication of work and also allows to access some of the datas that are allowed to access.

  2. In the article the author compares Java API to Twitter API. What is the main difference between these two APIs?
    Java API is like a framework. There are things already defined inside. So Java API allows you to use prebuilt things. And Twitter API is a gate that allows you to send request to the Twitter server and operate the commands that are set in the API.

  3. The section in the article about abstraction is important, try to understand it and write down an abstraction from your daily life.
    From what I understood is abstraction is something similar to Human Computer Interaction. The process behind to make things happen are quite complicated but at the interface when people use it needs to be simple. So in my daily life all the electric items like oven, heater and those items have this abstraction.

1 Like
  1. It’s essentially an already created “template” of rules and functions you can apply in your code so you don’t have to write everything from scratch. It’s used to interact with another set of software or system.
  2. Java API sits within the developer kit and comes in the form of a list. The Twitter API sits on the web and the developer sends a request via the internet and gets it returned in JSON format.
  3. Using a door lock, using paper money, using words
1 Like
  1. An API is defined as a specification of possible interactions with a software component.

  2. The Java API is a library of software components available “out of the box” to anyone who has installed the Java Development Kit. The Twitter API is a web-based JSON API that allows developers to programmatically interact with Twitter data. Unlike the Java API, which is included in the Java Development Kit, the Twitter API is a web-based API. It must be accessed by making requests over the Internet to services that Twitter hosts.

  3. One abstraction is going to the refrigerator grab any piece of food and eat it without have to worry about the labor, logistics, financial, and legal issues that a lot of companies have to deal to make food for all of us.

1 Like

1) What is an API?
API, Application Programming Interface, is a set of exposed components/rules that can be interacted with and used by another application.

2) In the article the author compares Java API to Twitter API. What is the main difference between these two APIs?
Twitter API is a web-based API that’s exposed publicly in order for developers to be able to interact with application. Java API is a set of interfaces, classes with their methods, constructors, fields that are included in the Java development kit (JDK).

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

1 Like
  1. API is how programs can interact and communicate with each other

  2. The Java API is a library of software components available “out of the box” to anyone who has installed the Java Development Kit. The Twitter API is a web-based JSON API that allows developers to programmatically interact with Twitter data. Unlike the Java API, which is included in the Java Development Kit.

  3. I love a good craft beer, but while I am enjoying it, I rarely think about the farmer that planted the hops, the harvester and transporter that took them to the processing plant and the equipment and ingredients used to make the delicious beverage.

1 Like
  1. API (Application Programming Interface) is a specification of possible interaction with a software component.

  2. Java: Included in Java development kit.
    Twitter: Web based.

  3. For example when a new helper joined our family, we spend some time to show her how to do online groceries shopping, give her a list of recipes for breakfast, lunch and dinner and schedule for household chores.

    Subsequently, all we need to do is to tell her “Recipe A for breakfast tomorrow” and she will know what ingredients are needed (so she know what items to put in the shopping cart), what to cook for breakfast (referencing recipe list) and how to clean up after breakfast (referencing chores list).

2 Likes

1) What is an API? API is an application programming interface which helps to connect different software codes to interact with each other, basically a set of rules which connect different codes/applications for their interaction.

2) In the article the author compares Java API to Twitter API. What is the main difference between these two APIs? Java API is the pre-installed software components through the Java Development Kit, which helps developers to interact on the Java platform, while Twitter API - is a web-based API and can be accessed by making requests over the Internet to the services which Twitter hosts.

3) The section in the article about abstraction is important, try to understand it and write down an abstraction from your daily life. For example - food delivery (I am using an app for that and getting my food delivered, my card and location linked to the app, so I am skipping lots of steps of making it happen (not growing food, not shopping, not cooking, just couple of clicks and it’s delivered)

1 Like
  1. API stands for Application Programming Interface and a set of specifications. It makes it possible to make components reusable, it hides complexity, organizes code, and allows integration somewhere else.

  2. Java API uses out of the box Java environment while twitter API is web based and is accessed by making requests over the web by sending a http request and the response is on a JSON format.

  3. Going to a coffee shop and buying a cup of coffee. I pay for it, and the complexity of making coffee is removed from my experience.

2 Likes

1 api is the tool used to exchange information between systems with different programming languages

2 the twiter api is web based, you have to insert specific criteria to interact, and the java api is a library of ready-made scripts that, when used, is like a cake that opens the package and only adds water, the basics already it’s done and just copy and paste and make small changes to the scripts

3 my girlfriend is my api, after i get out of the bath i tell her what color i like to wear if i wear a jacket and what brand of tennis shoes, i don’t have to know what drawer the clothes came from or what drawer this one is like it was washed, when i get to the room what i imagined is on the bed ready to wear (this was just an example my girlfriend is not my api and i wash it and choose the clothes lol)

1 Like