Hello all
I need to connect to a Socrata private dataset and for that I already tried the following configurations on the download tool:
1 - Add the username / password in the "Connection" tab in Download tool.
When I try this I get this error:
{
"error" : true,
"message" : "You must be logged in to access this resource"
}
2 - Use an app Token provided by Socrata
According to Socrata documentation I could use an App Token to get the authentication done. I've created the token and the instructions are these:
App Tokens
All requests should include an app token that identifies your application, and each application should have its own unique app token. A limited number of requests can be made without an app token, but they are subject to much lower throttling limits than request that do include one. With an app token, your application is guaranteed access to it's own pool of requests. If you don't have an app token yet, click the button to the right to sign up for one.
Once you have an app token, you can include it with your request either by using the X-App-Token HTTP header, or by passing it via the $$app_token parameter on your URL
So I've added the X-App-Token in the Header tab in the Download tool configuration. Then I got the same error:
{
"error" : true,
"message" : "You must be logged in to access this resource"
}
If I pass an incorrect token then I get this error:
{
"code" : "permission_denied",
"error" : true,
"message" : "Invalid app_token specified"
}
So I wonder, does anyone has experience configuring this connection with Socrata API?
Best regards
Rodrigo