java - How to get the authorization from Nest via firebase API? -
I am new to programming for nest and how do I get authorization from the nest through the Firebase API I'm confused.
I want to write an app in Android to access device information. I have already registered an account with Nest and have created a customer with the web interface. I've found the authorization URL on the customer page and I have used the Chrome extension to create 2 virtual devices.
//home.nest? .com / login / OAuth2 client_id = CLIENT_ID & state = state "); Logs. I (tag, "getuprums" + ref.gettarm ());
I log in for this information, so I found the following logs:
getParams {}
UPDATE
I have read the website RIT but there are some things that I am still confused about.
My Client Page has the following information:
Client id: b4bf4721-2 *** - 4 *** - *** *** - c1a **** ***** Customer Secret: S578in ***** ******* Authority URL: https://home.nest.com/login/oauth2?client_id=b4bf4721-2***-4** * -a *** - c1a ****** *** & amp; State = State Access Token URL: https://api.home.nest.com/oauth2/access_token?code=AUTHORIZATION_CODE&client_id=b4bf4721-2***-4***-a*** -c1a *** ****** & amp; Client_secret = S578in *********************************** Grant_type = authorization_code When I use the following code:
firebase ref = new firefighter (authorization URL); I hope this will return the PIN code, but it is not.
In addition to this, subject 3. An authorization code for an access token is the exchange command:
"Posted in https://api.home.nest.com / Oauth2 / access_token? Code = STRING & amp; client_id = STRING & amp; client_secret = STRING & amp; grant_type = authorization_code Does anyone know if a firebase API can get this command?
The authorization is done after the following, once you have a token with that, you can use the Firebase API Can be used. The Firebase Protocol does not provide direct authority.
Comments
Post a Comment