Skip to content

Commit

Permalink
Added client_secret and changed client_id
Browse files Browse the repository at this point in the history
Fixed #1
  • Loading branch information
Wolfgang Malgadey committed Jun 13, 2017
1 parent 937833d commit bfaa761
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions PyTado/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ def _refresh_token(self):
return False

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

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

0 comments on commit bfaa761

Please sign in to comment.