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

How to close BoxDeveloperEditionAPIConnection or BoxTransactionalAPIConnection ?

回答済み
新規投稿

コメント

3件のコメント

  • Alex Novotny

    Hello, 

    As mentioned in this guide, tokens are valid for 60 minutes. Are you using one of our SDKS? Token management should be built in if so. 

    Thanks, 

    Alex, Box Developer Advocate

    0
    コメントアクション Permalink
  • Abhishek Mayee

    We are using following Box SDK : GitHub - box/box-java-sdk: The Box SDK for Java.

    So if we create mulitple instances of BoxDeveloperEditionAPIConnection or BoxTransactionalAPIConnection then don't we need to manage closing of these connections ?

    Is there anything we need to manage on our side for these connections or tokens ?

    Thanks.

    0
    コメントアクション Permalink
  • Kamil Berdychowski

    Hi Abhishek Mayee,

    You don't need to manage the BoxDeveloperEditionAPIConnection nor BoxTransactionalAPIConnection. There is no resource "opened" like for example socket that you should close. Connections basically manage token exchange so that you do not need to worry about this.

    If you want to revoke tokens used you can call api.revokeToken() . As Alex Novotny said token will expire after 60 minutes.

    0
    コメントアクション Permalink

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