aboutsummaryrefslogtreecommitdiffstats
path: root/python/shell.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-08 16:28:27 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-08 16:28:27 -0800
commit16f2e78298dbd2231f5f337ea17c89a6a131a052 (patch)
tree6e72581e625e73c97cbab72d0f9c35665c99e5d7 /python/shell.py
parenteb40a5f274f3608db34309cfd16739a7642ef5e7 (diff)
parentffb721f90c5d97ee80885209bf45feb85ca9625c (diff)
downloadfatcat-16f2e78298dbd2231f5f337ea17c89a6a131a052.tar.gz
fatcat-16f2e78298dbd2231f5f337ea17c89a6a131a052.zip
Merge branch 'bnewbold-crude-auth'
Fixed a conflict in: python/fatcat_export.py
Diffstat (limited to 'python/shell.py')
-rw-r--r--python/shell.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/python/shell.py b/python/shell.py
index 78d32deb..ad92f4ae 100644
--- a/python/shell.py
+++ b/python/shell.py
@@ -28,14 +28,23 @@ if __name__ == '__main__':
admin_id = "aaaaaaaaaaaabkvkaaaaaaaaae"
+ #fatcat_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
+ #fatcat_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
local_conf = fatcat_client.Configuration()
+ local_conf.api_key["Authorization"] = "AgEPZGV2LmZhdGNhdC53aWtpAg4yMDE4LTEyLTMxLWRldgACJmVkaXRvcl9pZCA9IGFhYWFhYWFhYWFhYWJrdmthYWFhYWFhYWFlAAIeY3JlYXRlZCA9IDIwMTgtMTItMzFUMjE6MTU6NDdaAAAGIMWFZeZ54pH4OzNl5+U5X3p1H1rMioSuIldihuiM5XAw"
+ local_conf.api_key_prefix["Authorization"] = "Bearer"
local_conf.host = 'http://localhost:9411/v0'
+ local_conf.debug = True
local_api = fatcat_client.DefaultApi(fatcat_client.ApiClient(local_conf))
- prod_conf = fatcat_client.Configuration()
- prod_conf.host = 'https://api.fatcat.wiki/v0'
- prod_api = fatcat_client.DefaultApi(fatcat_client.ApiClient(prod_conf))
+ #prod_conf = fatcat_client.Configuration()
+ #local_conf.api_key["Authorization"] = "AgEPZGV2LmZhdGNhdC53aWtpAg4yMDE4LTEyLTMxLWRldgACJmVkaXRvcl9pZCA9IGFhYWFhYWFhYWFhYWJrdmthYWFhYWFhYWFlAAIeY3JlYXRlZCA9IDIwMTgtMTItMzFUMjE6MTU6NDdaAAAGIMWFZeZ54pH4OzNl5+U5X3p1H1rMioSuIldihuiM5XAw"
+ #local_conf.api_key_prefix["Authorization"] = "Bearer"
+ #prod_conf.host = 'https://api.fatcat.wiki/v0'
+ #prod_api = fatcat_client.DefaultApi(fatcat_client.ApiClient(prod_conf))
qa_conf = fatcat_client.Configuration()
+ local_conf.api_key["Authorization"] = "AgEPZGV2LmZhdGNhdC53aWtpAg4yMDE4LTEyLTMxLWRldgACJmVkaXRvcl9pZCA9IGFhYWFhYWFhYWFhYWJrdmthYWFhYWFhYWFlAAIeY3JlYXRlZCA9IDIwMTgtMTItMzFUMjE6MTU6NDdaAAAGIMWFZeZ54pH4OzNl5+U5X3p1H1rMioSuIldihuiM5XAw"
+ local_conf.api_key_prefix["Authorization"] = "Bearer"
qa_conf.host = 'https://api.qa.fatcat.wiki/v0'
qa_api = fatcat_client.DefaultApi(fatcat_client.ApiClient(qa_conf))