Commit graph

9 commits

Author SHA1 Message Date
db6d8c6d73
Catch request errors 2022-11-24 11:21:00 +01:00
b15cb85a23
Standardize http request method parameters
This allows setting either json or data. Until now we were always using
data and this is not enough for some endpoints.
2022-11-24 11:20:59 +01:00
Josh Soref
67bea207cd
Spelling fixes (#215)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2022-11-09 14:24:48 +01:00
840b2fd476
Set the user agent string to all requests
Fixes issue with accessing instances using Cloudfare DDOS protection.

issue #106
2019-08-07 22:58:30 +02:00
226713a5a0
Apply requests environment settings
Allows use of enironment variables for setting proxies and trusted CAs.

See:
http://docs.python-requests.org/en/master/user/advanced/#prepared-requests
2018-12-30 10:38:40 +01:00
72f88831ad
Add delete command
issue #54
2018-06-14 10:40:16 +02:00
025d8dde09
Use Idempotency-Key header when posting toots 2018-06-13 13:22:52 +02:00
92d4dc745a
Use http methods instead of requests directly 2017-12-30 16:30:35 +01:00
20eaf86b56
Extract http methods 2017-12-30 14:15:51 +01:00