Programming API's In Python | PART-1 | extrovert.dev -->

Programming API's In Python | PART-1

Programming API's In Python  |  PART-1
Thursday, February 14, 2019


Hello readers ..! In this post lets dive into  my personal favourite thing called API. API stands for Application Programming Interface , sounds great 😎 right ??.


There are variety of API's out there in the market. Some of them provide cool stuff like weather , Jokes , Movie details etc..

 API is provided by the developers to make secure access to its data. For example, you are building a project that deals with User location or some map services then to make it simpler we will use Maps API , so that it eliminates the infrastructure that contains geo codes etc.. Here the request is sent by the programme to match the set of rules provided by the API developer. When the query is matched, it results the response either in JSON or XML.The developer makes the API using REST( Representational state transfer) Rules.

  Here we are just confined for accessing data from an API. Now lets understand some of key terms.





Methods:

    These methods are useful for us in making CRUD operations.

  • GET
  • PATCH
  • PUT
  • DELETE
  • POST

  Headers:

      Headers alerts both the Requesting server and Response proving server to make  the process in insisted format (JSON / XML). It also checks the authentication details.

In the next post we will build python code that makes a request to an API to list the details of Agricultural markets like Location , min price , max price etc.. we will use Flask for this.

-----PART - 2

0 Response to Programming API's In Python | PART-1

Comments are personally moderated by our team. Promotions are not encouraged.

Post a Comment