From ff230c6f423527a13048e95fde7e2bd02bba59d8 Mon Sep 17 00:00:00 2001 From: Adam Coddington Date: Sat, 18 May 2013 17:36:33 -0700 Subject: [PATCH] Removing clientBuildNumber/clientId from request parameters due to originating endpoint no longer existing. --- pyicloud/base.py | 14 +------------- requirements.txt | 3 +-- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/pyicloud/base.py b/pyicloud/base.py index 10de085..3cea2eb 100644 --- a/pyicloud/base.py +++ b/pyicloud/base.py @@ -41,22 +41,10 @@ class PyiCloudService(object): 'User-Agent': 'Opera/9.52 (X11; Linux i686; U; en)' }) - self.refresh_version() - self.params = { - 'clientId': self.client_id, - 'clientBuildNumber': self.build_id - } + self.params = {} self.authenticate() - def refresh_version(self): - """ - Retrieves the buildNumber from the /version endpoint. - This is used by almost all request query strings. - """ - req = requests.get(self._base_system_url) - self.build_id = req.json()['buildNumber'] - def refresh_validate(self): """ Queries the /validate endpoint and fetches two key values we need: diff --git a/requirements.txt b/requirements.txt index 04f80f5..a167244 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1 @@ -uuid -requests \ No newline at end of file +requests>=1.2