2014-10-07 105 views

回答

0

是的,它是:

client_pin = '' 
client_id = 'your_client_id' 
client_secret = 'your_client_secret' 
request_token = 'some_random_state_hash' 

client_pin = input('Enter PIN:') 

access_token_url = 'https://api.home.nest.com/oauth2/access_token' 

c = Client(
    token_endpoint=access_token_url_plain, 
    client_id=client_id, 
    client_secret=client_secret) 

c.request_token(code = client_pin) 

您现在应该有一个会议。

相关问题