Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

How to close BoxDeveloperEditionAPIConnection or BoxTransactionalAPIConnection ?

Answered
New post

Comments

3 comments

  • 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
    Comment actions 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
    Comment actions 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
    Comment actions Permalink

Please sign in to leave a comment.