Particle must have discontinued accepting tokens from their generic accounts for matching product specific accounts. Here’s the alternative process known as OAuth 2.0 Authorization Code Grant:
- send user to following URL:
- Upon successful submission the page will redirect to:
- Now that you know our_secret_string request:
https://www.garadget.com/api/oauth/token.php?client_id=public-2879&code=our_secret_string
The response will look like:
{
“access_token”:“auth token”,
“expires_in”:7776000,
“refresh_token”:“refresh token”
}
Use long random string for your_secret_string, verify that it matches when receiving redirect at Fastest Web Hosting Services | Buy High Quality Hosting
The first URL also accepts numeric expires_in parameter in seconds. Set it to 0 for non-expiring token.