Skip to content

Commit

Permalink
Added new oauth2 credentials
Browse files Browse the repository at this point in the history
fixes #2
  • Loading branch information
Wolfgang Malgadey authored Jul 2, 2017
1 parent dfd574d commit 09c8b45
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PyTado/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ def _refresh_token(self):
return False

url = 'https://my.tado.com/oauth/token'
data = {'client_id' : 'tado-web-app',
'client_secret' : 'wZaRN7rpjn3FoNyF5IFuxg9uMzYJcvOoQ8QWiIqS3hfk6gLhVlG57j5YNoZL2Rtc',
data = {'client_id' : 'public-api-preview',
'client_secret' : '4HJGRffVR8xb3XdEUQpjgZ1VplJi6Xgw',
'grant_type' : 'refresh_token',
'scope' : 'home.user',
'refresh_token' : self.refresh_token}
Expand All @@ -138,8 +138,8 @@ def _loginV2(self, username, password):
headers['Content-Type'] = 'application/json'

url = 'https://my.tado.com/oauth/token'
data = {'client_id' : 'tado-web-app',
'client_secret' : 'wZaRN7rpjn3FoNyF5IFuxg9uMzYJcvOoQ8QWiIqS3hfk6gLhVlG57j5YNoZL2Rtc',
data = {'client_id' : 'public-api-preview',
'client_secret' : '4HJGRffVR8xb3XdEUQpjgZ1VplJi6Xgw',
'grant_type' : 'password',
'password' : password,
'scope' : 'home.user',
Expand Down

0 comments on commit 09c8b45

Please sign in to comment.