Testing API call - receive error 400
回答済みHi all,
I'm doing some initial testing of an API call, just trying to get a new integration working. I'm new to the Box API...
I have a solution I'm creating (it is NOT a web-based app, but has the capability to set cURL options and call URLs). I *think* I have my Post data object correct...but, my initial tests were resulting in an Error = 400 response. Unfortunately, I can only read the response Header on this platform, not the response Body - so I can't see detailed error messages.
So I switched over to using Postman, just to try and get some basic tests working. I am also getting a 400 error over there - but the detailed message says that it is a bad 'grant_type'...but it really looks like I have correctly defined & populated the 'grant_type'.
Here's an example of the Postman call... yes, a couple of the keys are empty, but I get the same result even when they are filled in; I have also tried this call with Grant_type = 'authorize', and get the same error.
Thanks for any hints or guidance on how I could get this working.
J
-
I think you are sending the parameters as headers instead of as form fields.
I'd recommend downloading our official Box Postman collection, as it has all these fields preconfigured for you already:
https://developer.box.com/guides/tooling/postman/quick-start/
Meanwhile though, here is what my configuration for refreshing an access token looks like:
Ignore the environment variables ({{variable}}), you can put your own values in those fields.
サインインしてコメントを残してください。
コメント
3件のコメント