Version 0.7.15

This commit is contained in:
Paco8 committed 2023-11-21 12:04:12 +01:00
1 parent 3a5576b350
commit ffc0e81556
5 files changed
+23 -3

No files matched your search

+7
View File
@@ -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']