新しいBoxサポートサイトへようこそ。 変更点の詳細はこちらをご確認ください .

API error - Grant credentials are invalid

新規投稿

コメント

1件のコメント

  • VI Web Portal

    I got the same "invalid_grant" error.  However, using "enterprise" type as below:

    curl -i -X POST "https://api.box.com/oauth2/token" \
         -H "Content-Type: application/x-www-form-urlencoded" \
         -d "client_id=***" \
         -d "client_secret=***" \
         -d "grant_type=client_credentials" \
         -d "box_subject_type=enterprise"  \
         -d "box_subject_id=account_enterprise_id_here"

    I did get back a token:

    {"access_token":"***","expires_in":3708,"restricted_to":[],"token_type":"bearer"}

    0
    コメントアクション Permalink

サインインしてコメントを残してください。