API what is it and how does it work? [duplicate]

1

What is an API, could someone explain me in a simple and with examples, I searched the internet but everything was very confusing.

    
asked by anonymous 06.07.2014 / 18:45

2 answers

1

API stands for "Application Programming Interface". It's basically the approach to public methods offered by a framework.

    
06.07.2014 / 18:48
0

Imagine a television control, you press the buttons to trigger some actions (the buttons would be the public methods). The control interface is your API, that is, you call its methods, but you do not know its implementation. Behind it there may be many other layers, but the one that interests you is the API.

    
06.07.2014 / 20:03