diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2015-01-21 14:07:00 +0100 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2015-03-03 22:22:46 +0100 |
commit | 4f0ad9e442e64f69d420dea4d737805eefaaf981 (patch) | |
tree | 8625aca6c0313243aab5143df916df400edc4385 /pyaggr3g470r/lib/client.py | |
parent | first implementation of fetchable feeds (diff) | |
download | newspipe-4f0ad9e442e64f69d420dea4d737805eefaaf981.tar.gz newspipe-4f0ad9e442e64f69d420dea4d737805eefaaf981.tar.bz2 newspipe-4f0ad9e442e64f69d420dea4d737805eefaaf981.zip |
continuing refacto
Diffstat (limited to 'pyaggr3g470r/lib/client.py')
-rwxr-xr-x | pyaggr3g470r/lib/client.py | 6 |
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 |