S
S
Stepan Sidorov2020-05-10 21:11:46
Python
Stepan Sidorov, 2020-05-10 21:11:46

How to use requests for python API?

Good afternoon. I need to manage the documents on the site , but I have this documentation at my disposal , and the knowledge to use rquests.
I can't figure out how to combine documentation and rquests requests.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Deleting Account, 2020-05-10
@Stepan47

I found a video where they teach how to work with the API in python https://www.youtube.com/watch?v=0x0hOdvhCXU .
Here on the left is the type of request that needs to be made, on the right is the request url, the beginning of all urls is https://smartcat.ai/api/, after that comes what is specified in the api, for example /integration/v1/document, together it turns out to be https: //smartcat.ai/api/integration/v1/document, in this case, you need to make a get request. Well also transfer the necessary parameters at requests. Which? They are described in the API.

A
Andrew, 2020-05-10
@OdAs

Links are not bad. But when using requests, I recommend using json if possible, it's easier and more convenient than parsing html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question