Box API not returning response as per the documentation
Trying to get the list of users with the help of this API - https://api.box.com/2.0/users?usemarker=true
Curl:
curl --location --request GET 'https://api.box.com/2.0/users?usemarker=true' \
--header 'Authorization: Bearer 1!TbtOvE-Tyv1hvIcABnPHKiIScmXcVlGcOZ2Qrzao2bov86diqkIzXzo1GMc9Jq9nYkZx7w3OABFk_at8J9JkbJVi2XLh4n7khJpLbBnoOrvs4vVF8TAWpvLpZi6Dh2SDpfuX_ADRZCKqvOow3PBwWbu6RFLY_7Y6xcIouqzIFBKmrpWR1IH69Y7GuCNDXG3iJjBjF453V3dJe8DuRrlm0-Q88ZpcD-bFlir7L-s1E0SHSLseaJ0UMqWMS4awP4vuofgxVIHCP5vfQUVDrdp36Ifta3255rmLmWbQsFE5FRHJufP1HBM9s7HxzWDK1w3Yiqt7DEz2lF9jMoFguePeMcasGgVBC3SWt-aj8ZUedceUN3QLzHwFhFEef19Q1_GeAjxoNFbLK6cuL001AMG19Q5Gl9yVw9BqPWodMIdtlEBIkRdeO-gPvpdi6drcB7ekY0nN7pDx3kW-QpYsLkYyEUykOqm25_oEfiQd541sgSENadf5ib_YV9_OierE-lsVJKheW5_ex4MiqzqkO5ufMP1KKxqqo-K-q8ruroFiNHzZzfq-dd7FNeaOW8Ru2IF3cGcc9tXjCxPquaBwKjWutaTGQ-20vmS8Jeyl3zI1MatUAaSstIsS_xHdILmBTqyWFQZlCusZ4kvS_Pq-_707JOCB_nIpLOPST-LxWmAUQgFDMQ2crLmiRYVIb2ygqYhJ1JQuq4LBrjTj0ruEfKov0IscbA..'
As per the documentation it should return like this in response
{ "type": "error", "code": "item_name_invalid", "context_info": { "message": "Something went wrong." }, "help_url": "https://developer.box.com/guides/api-calls/permissions-and-errors/common-errors/", "message": "Method Not Allowed", "request_id": "abcdef123456", "status": 400 }
But it returning the empty response with 401 as the header,
Headers:
Response Body is Empty:
https://developer.box.com/reference/resources/client-error/
https://developer.box.com/guides/api-calls/permissions-and-errors/common-errors/
投稿コメントは受け付けていません。
コメント
1件のコメント