(Application Programming Interface)
HTTP
↬ HyperText Transfer Protocol.
↬ Rules for getting something from one place to another.
REST
↬ Representational State Transfer.
↬ it must do the following:
- Separate the client from the server
- Not hold state between requests
- Use HTTP and HTTP methods
- GET: retrieves information from the specified source
- POST: sends new information to the specified source.
- PUT: updates existing information of the specified source.
- DELETE: removes existing information from the specified source.
Anatomy of a Request
1) request line
2)header
3)body
Authentication & API Keys
"APIs require authentication using a protocol called OAuth."
Eg:
var apiKey = "FtHwuH8w1RDjQpOr0y0gF3AWm8sRsRzncK3hHh9";
XML
(E xtensible Markup Language )
No comments:
Post a Comment