What is an API? - Reading Assignment
What is an API?
It is the abbreviation for āApplication Programming Interfaceā. They hide complexity from developers, extend systems to partners, organize code and make components reusable.
API is a set of routines, protocols, and tools for building software applications. Basically, an API specifies how software components should interact. Additionally, APIs are used when programming graphical user interface (GUI) components. A good API makes it easier to develop a program by providing all the building blocks. A programmer then puts the blocks together. (www.webopedia.com )
In the article the author compares Java API to Twitter API. What is the main difference between these two APIās?
Java API
A list of all classes that are part of the Java development kit (JDK). It includes all Java packages, classes, and interfaces, along with their methods, fields, and constructors. Similar to a user interface, which facilitates interaction between humans and computers. These prewritten classes provide a tremendous amount of functionality to a programmer.
Twitter API
Twitter offers two APIs. The REST API allows developers to access core Twitter data and the Search API provides methods for developers to interact with Twitter Search and trends data.
The section in the article about abstraction is important, try to understand it and write down an abstraction from your daily life.
A Bank ATM. We can deposit cash and checks, withdraw cash, request a statement, transfer money and purchase stamps without concerning ourselves with the processes behind the scenes.