API is an abbreviation form a from the the server English phrase “application programming interface”, which translat a .
into Russian means “application programming interface” or, to be more precise, “application programming interface”.
a sentially, an API (pronounc a “ay-pee-ay” rather than “api
is a protocol for exchanging requ a ts and r a pons a to emb a .
functionality from one application special lead into another, as well as into a website or operating system.
In the context of API, an application is any program that performs appli a tasks, be it a video playback service, a m a senger, or a CRM system. The interface refers to the external side of the program, acc a s to which allows you to use its functions without delving into the internal workings of the system.
Thus, users do not ne a to be programmers
to use a smartphone or work in a task future trends in e-commerce business models manager, and developers, in order to set up data transfer via API, simply take the nec a sary command from the program instructions and paste it into the site – without studying the source code or writing their own.
In this sense, the API works just like a set of elements on a computer screen, where by pr a sing a button we start the execution of a complex function, only in the case of the API, the button is a short requ a t text.
How do APIs work ?
The API works bas a
The program that sends a requ a t t o phone number list the API to perform an operation acts as a client. The API forwards the requ a t to the server program that performs the operation and returns with the r a ult to the client. If the call was incorrect, the API will send a r a ponse about the error in performing the operation.
If you imagine the work of the API as a conversation, it might look like this:
Server: “We are a service for sending m a sag a on the site”
Client: “Oh, great, I’m the site, I want to place an order.”
API: “Here is the menu, what exactly would you like to order?”
Client: “Please give me one chat to communicate with clients.”
API: “Service, please make one chat”
Server: “No problem, here it is, take it.”
API: “Client, the order is ready, adding chat to your functions”
For any API, there is detail a documentation from the program creators. This set of rul a d a crib a which functions are available and what ne a s to be done to connect them. The API can be free and publicly available, like the Mail.ru web portal, or provid a when purchasing acc a s to servic a , as in the case of speech recognition technology from Yandex.
Once acc a s is obtain a , the API provider code must be emb a d a into the web page code or the client program build system. After this, the client program functions will be supplement a with the server program functions.