Commit Graph

21 Commits

Author SHA1 Message Date
22da3b77ce removed id from TokenTup 2022-04-23 15:19:27 +02:00
441c7c6c57 separate token instances from token clients 2022-04-23 15:17:58 +02:00
4859c43b2a remove constructor from base class so it can receive the token attributes, fix up child classes to be a bit clearer 2022-04-23 15:14:45 +02:00
04ccc4e9ae return tokens not dicts 2022-04-23 15:07:14 +02:00
f5a78e8b05 oops forgot to return soething from 'get', and to unpack it into a dictionary 2022-04-23 15:01:43 +02:00
9cf323b9cb oops 2022-04-23 14:57:09 +02:00
50ecb9d042 raise NoResult in redis token store 2022-04-23 14:51:53 +02:00
7636483346 import token stores into __init__ 2022-04-23 14:45:11 +02:00
4f8221fb0b token store can be injected when instantiating ApiClient. there's a disk-based and redis-based one out of the box 2022-04-23 14:39:03 +02:00
fe565a593d moved everything into api.py module, imported ApiClient into __init__.py. changed the path of the oauth-containing json file to current working directory, removed references to python-dotenv which has already been removed as a dependency 2022-04-21 12:16:45 +02:00
6b393f95fa updated docs, ironed out a few things 2022-04-20 01:16:57 +02:00
77acc768e2 fixed gateway name 2022-04-20 00:35:09 +02:00
75e8d9e592 refactored to use an ApiClient class 2022-04-20 00:28:53 +02:00
942c141418 print the URLs more nicely 2022-04-08 12:15:19 +02:00
1ea81c4f8a more id confusion 2022-04-08 12:13:06 +02:00
f4ebe06b7f bump 2022-04-08 12:09:41 +02:00
da66c68c45 bugfix, was using built-in id instead of id_ 2022-04-08 12:09:08 +02:00
4f9220cec8 better docs 2022-04-08 11:59:13 +02:00
c0e32f7472 small docs update 2022-04-08 11:55:29 +02:00
e65a7c1d23 bump 2022-04-08 11:51:26 +02:00
3492b44f2e first 2022-04-08 11:48:41 +02:00