How can I use the API with Python requests module? #381
-
I couldn't find any documentation on the API other than this. How can I accomplish something like this:
I don't think basic auth is supported so any pointers on how to auth would be a good start 😄 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
APIs use JSON. You have to POST valid JSON to the appropriate endpoint.
Here is a simple curl command that does just that. It contains all info you need (at least for the authentication). |
Beta Was this translation helpful? Give feedback.
-
Reading up on how curl & cookies work I was able to build something that works in Python. Posting here in case someone else is looking for it:
|
Beta Was this translation helpful? Give feedback.
Reading up on how curl & cookies work I was able to build something that works in Python. Posting here in case someone else is looking for it: