Version 0.7.15
This commit is contained in:
1 parent
3a5576b350
commit
ffc0e81556
5 files changed
+23
-3
No files matched your search
@@ -394,6 +394,13 @@ class Movistar(object):
|
||||
content = response.content.decode('utf-8')
|
||||
return content
|
||||
|
||||
def get_cdntoken(self):
|
||||
headers = self.net.headers.copy()
|
||||
headers['Authorization'] = 'Bearer ' + self.account['access_token']
|
||||
url = self.endpoints['renovacion_cdntoken2'].format(ACCOUNTNUMBER=self.account['id'])
|
||||
data = self.net.post_data(url, None, headers)
|
||||
return data.get('access_token')
|
||||
|
||||
def get_profiles(self):
|
||||
headers = self.net.headers.copy()
|
||||
headers['X-HZId'] = self.account['session_token']
|
||||
|
||||
Reference in new issue
Block a user