Not registered yet?
I am trying to fetch all form records using the documented pattern ‘/apps/APP_ID/dtypes/entity/ENTITY_ID.json’ in Java 8, with Retrofit2, and Gson to handle JSON stuff, but I received 401 response no matter how I try.The complete URL can produce valid response in Chrome browser, but receives only brackets() in Safari. I tried to set an API key in the body, but the Retrofit framework complained that body is not acceptable in a GET method. That seems to violate the specifications of HTTP 1.1.Then I tried to use POST method instead, got the same 401 response.I have no idea. Is there any operational sample written in Java?
You receive results in browser, because you are logged in.But in order to get result from your script, you should pass API key to authorize.Otherwise you’ll keep getting 401 error.
The REST API I’m using wouldn’t allow me to send a GET method with body in it. I googled a bit and they say it has something to do with the HTTP/1.1 specification. I’m not sure. Maybe I’d try another REST API to do the job.
But it’s not a body, it’s just a parameter needs to be sent. You can even try to send it via URL, i.e. by adding ?rest_api_key=YOURKEY
THAT WORKS!I should have asked 8 hours earlier.The header in the table just kept me from suspecting that it can actually be a query parameter…
Great to hear that! Yes, please, do not waste your time, we always here to help.
Submitting forms with same last names
change field properties
Searching Across Forms