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)'
|
'User-Agent': 'Opera/9.52 (X11; Linux i686; U; en)'
|
||||||
})
|
})
|
||||||
|
|
||||||
self.refresh_version()
|
self.params = {}
|
||||||
self.params = {
|
|
||||||
'clientId': self.client_id,
|
|
||||||
'clientBuildNumber': self.build_id
|
|
||||||
}
|
|
||||||
|
|
||||||
self.authenticate()
|
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):
|
def refresh_validate(self):
|
||||||
"""
|
"""
|
||||||
Queries the /validate endpoint and fetches two key values we need:
|
Queries the /validate endpoint and fetches two key values we need:
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
uuid
|
requests>=1.2
|
||||||
requests
|
|
||||||
|
|
Loading…
Reference in a new issue