aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/lib/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/lib/client.py')
-rwxr-xr-xpyaggr3g470r/lib/client.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyaggr3g470r/lib/client.py b/pyaggr3g470r/lib/client.py
index da6b1727..6b2fc9ae 100755
--- a/pyaggr3g470r/lib/client.py
+++ b/pyaggr3g470r/lib/client.py
@@ -1,16 +1,16 @@
#!/usr/bin/env python
import json
import requests
-URL = 'domain.net'
+import conf
def get_client(email, password):
client = requests.session()
- client.get(URL + 'api/csrf', verify=False,
+ client.get(conf.PLATFORM_URL + 'api/csrf', verify=False,
data=json.dumps({'email': email,
'password': password}))
return client
def get_articles(client):
- return client.get(URL + 'api/v1.0/articles/').json
+ return client.get(conf.PLATFORM_URL + 'api/v1.0/articles/').json
bgstack15