We are setting up a device in a test environment.
We have successfully setup the device with multiple computers that make REST API calls to particle io.
On April 1st we were running the same API call that worked many times in the past
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:
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.
Thanks for your reply! I have been attempting to follow the OAuth flow and was able to retrieve the “our_secret_string” and match “your_secret_string” to match what I gave. But after sending a GET request to
I would get a 403 using python requests. But the exact same request to the url works through a browser.
I even tried using the same headers that the browser used, but I also got a 403.
After several attempts with my script, My IP was blocked for about and hour.
Any assistance would be appreciated,
-Alex Kohanim
[EDIT] Tested with Curl and it works! We need to rethink our Python Request Logic. I guess that’s what we get for working through the night.
[EDIT2] Looks like Header for user agent is required. We tried it with curl’s user agent and it works now. We might test other user agents and get back to this forum.