Nader Gharsallaoui
Nader Gharsallaoui

Reputation: 48

Android-NestDK An error occured : An eror occured while fetching client info

I am trying to run the sample code Android Nest SDK, but I have the error:

An error occurred : An error occurred while fetching client info

I think that the problem is to insert the NestClientID and the NestClientSecret, but I can't find where I can get them.

Upvotes: 1

Views: 115

Answers (2)

Nader Gharsallaoui
Nader Gharsallaoui

Reputation: 48

I find the answer, I just change in Constants.java

  1. set client ID "<get Clientid from nest web site>"
  2. set client secret "<get CLIENT SECRET from nest web site>"
  3. set REDIRECT URL to "http://localhost/"
  4. change the URL REDIRECT from the Nest website "Edit Product"

Upvotes: 0

YH_WU
YH_WU

Reputation: 63

Get Nest product key

  1. Sign up a Nest Account
  2. Press "Create New Product" button and fill out a form
  3. Go into the product you just created. You'll see "Keys" in the right of website, including Product ID,Product Secret,Authorization URL and Access Token URL.

Modify the sample code

  1. Open Constants.java
  2. Modify CLIENT_ID,CLIENT_SECRET and REDIRECT_URL
  3. Run

Upvotes: 0

Related Questions