Get all users API not working
完了In the web: https://developer.box.com/reference/get-users/
It is listing all the users there.
But when i am using postman or javaScript code it is not coming. I am getting this response
{
"total_count": 0,
"entries": [],
"limit": 100,
"offset": 0
}
curl:
curl --location 'https://api.box.com/2.0/users' \
--header 'authorization: Bearer horYnqVS6BdU8X**XHERfY0Y6sOpXI6S' \
--header 'Cookie: box_visitor_id=66acdc3c8eeef8.59718257; site_preference=desktop'
curl:
curl --location 'https://api.box.com/2.0/users' \
--header 'authorization: Bearer horYnqVS6BdU8X**XHERfY0Y6sOpXI6S' \
--header 'Cookie: box_visitor_id=66acdc3c8eeef8.59718257; site_preference=desktop'
curl for token generation:
curl --location 'https://api.box.com/oauth2/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: box_visitor_id=66acdc3c8eeef8.59718257; site_preference=desktop' \
--data-urlencode 'client_id=68719cw2b8ihq7joot2fthclfueuz964' \
--data-urlencode 'client_secret=DvJdjt********************SViKPe' \
--data-urlencode 'box_subject_type=enterprise' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'box_subject_id=1216648223'
curl --location 'https://api.box.com/oauth2/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: box_visitor_id=66acdc3c8eeef8.59718257; site_preference=desktop' \
--data-urlencode 'client_id=68719cw2b8ihq7joot2fthclfueuz964' \
--data-urlencode 'client_secret=DvJdjt********************SViKPe' \
--data-urlencode 'box_subject_type=enterprise' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'box_subject_id=1216648223'
サインインしてコメントを残してください。
コメント
1件のコメント