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