Removing clientBuildNumber/clientId from request parameters due to originating endpoint no longer existing.
This commit is contained in:
parent
804cbf1521
commit
ff230c6f42
2 changed files with 2 additions and 15 deletions
|
@ -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:
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
uuid
|
||||
requests
|
||||
requests>=1.2
|
||||
|
|
Loading…
Reference in a new issue