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

Api connection

回答済み
新規投稿

コメント

4件のコメント

  • 正式なコメント
    Kourtney

    Hello Vinoth, 

    What happens when you try to make a call to download/upload/rename/delete folder/files? Is there an error message you can share? 

    Best, 

    Kourtney 

    コメントアクション パーマリンク
  • Vinoth Manoharan

    The error code for when I attempt to use BoxFile.getInfo() method.

    com.box.sdk.BoxAPIResponseException: The API returned an error code [404 | yl6navgjxfsndo9b.093f3435836b37f7a41644acd4b0a45cf] not_found - Not Found
    The API returned an error code [404 | yl6navgjxfsndo9b.093f3435836b37f7a41644acd4b0a45cf] not_found - Not Found

    0
    コメントアクション パーマリンク
  • Kourtney

    You're using a JWT app, which means by default your token is associated with the applications service account. Just like within Box.com directly, you can only interact with content the user associated with your token either owns or has collaborator access to. The 404 indicates that your service account. does not have access to the  file you're trying to get information about here. Therefore, you'll either need to add the service account as a collaborator OR get a token associated with someone who already has access to the file. Hope that helps! 

    1
    コメントアクション パーマリンク
  • Vinoth Manoharan

    Thanks it does help! You wouldn't happen to know the method to get the correct api when using a .json that has a client id within the json?

    0
    コメントアクション パーマリンク

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