Sunday, June 18, 2017

HTTP Method



          The number of HTTP methods we'll use is quite small—there are just four HTTP "verbs" we'll need to know! They are:

💢 GET: retrieves information from the specified source (you just saw this one!)

💢 POST: sends new information to the specified source.

💢 PUT: updates existing information of the specified source.

💢 DELETE: removes existing information from the specified source.

💥Endpoints
      Endpoints are API-defined locations where particular data are stored. Just as we'll GET a pair of pants from PantsWorld or we'll GET a bag of peanuts from PeanutHut, we'll GET something different depending on the endpoint we use.

💥Authentication & API Keys
     Many APIs require an API key. Just as a real-world key allows we to access something, an API key grants we access to a particular API. Moreover, an API key identifies we to the API, which helps the API provider keep track of how our service is used and prevent unauthorized or malicious activity.
Some APIs require authentication using a protocol called OAuth. We won't get into the details, but if we've ever been redirected to a page asking for permission to link an application with our account, we've probably used OAuth.

No comments:

Post a Comment