M
M
Marat Akhmetshin2018-10-01 17:22:45
Bots
Marat Akhmetshin, 2018-10-01 17:22:45

How to work with Rest API?

I want to write a cart bot that pulls info from Todoist. The latter has a REST API. I have basic knowledge of Python and a minimum of programming skills)
Where to look to learn this part of programming?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Danny Chase, 2018-10-01
@bukrat

minimum: learn how to send requests to the API and receive responses.
in my opinion, in python, the requests module is responsible for this, this minimum will be enough to poke into
this apishka

  • find out what a request is, what it consists of and how it works
  • understand what json and XML are, how to eat them and why they are needed
  • understand server response codes
  • bring OAuth 2.0 into your life
  • Parse the request body and the response body

C
Cheypnow, 2018-10-01
@Cheypnow

You are looking for how to send a request in python and how to parse JSON on it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question