The Community is undergoing a major upgrade. Find out more, ask us questions or share your thoughts here.

Forum Discussion

jasmine_r's avatar
jasmine_r
Helpful | Level 6
7 years ago

DbxClientV2

Hi, I tried listing folders from my dropbox by creating a client with the access token for my account. I was able to create more than 1 client and list folders and files. It worked fine. How many number of clients can be created at a maximum for an account. Is DbxClientV2 API similar to a socket connection ? Does the client connection has any expiration ?

  • The DbxClientV2 objects you create are just local client objects to make it easier to call the Dropbox API, but don't themselves create connections immediately upon construction. The API calls are only made when you call one of the methods, e.g., listFolder.

    That being the case, the API/SDK doesn't enforce a limit on how many of these you create, but you generally won't need more than one per-user. The client objects themselves don't expire, but the access tokens used to access the API can be revoked at any time.

    Also, note that the Dropbox API does have a rate limiting system, but it is based on the rate of calls made per user.
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    The DbxClientV2 objects you create are just local client objects to make it easier to call the Dropbox API, but don't themselves create connections immediately upon construction. The API calls are only made when you call one of the methods, e.g., listFolder.

    That being the case, the API/SDK doesn't enforce a limit on how many of these you create, but you generally won't need more than one per-user. The client objects themselves don't expire, but the access tokens used to access the API can be revoked at any time.

    Also, note that the Dropbox API does have a rate limiting system, but it is based on the rate of calls made per user.