Skip to main content

Use the dropbox sdk to get the files count

Project description

Getting Started with Dropbox

Introduction

API for testing OAuth2 with Dropbox

Install the Package

The package is compatible with Python versions 3.7+. Install the package from PyPi using the following pip command:

pip install dropbox-sdk==1.0.0

You can also view the package at: https://pypi.python.org/pypi/dropbox-sdk/1.0.0

Initialize the API Client

Note: Documentation for the client can be found here.

The following parameters are configurable for the API Client:

Parameter Type Description
basepath str Base path of the Dropbox API server
Default: 'api.dropboxapi.com'
environment Environment The API environment.
Default: Environment.PRODUCTION
http_client_instance HttpClient The Http Client passed from the sdk user for making requests
override_http_client_configuration bool The value which determines to override properties of the passed Http Client from the sdk user
http_call_back HttpCallBack The callback value that is invoked before and after an HTTP call is made to an endpoint
timeout float The value to use for connection timeout.
Default: 60
max_retries int The number of times to retry an endpoint call if it fails.
Default: 0
backoff_factor float A backoff factor to apply between attempts after the second try.
Default: 0
retry_statuses Array of int The http statuses on which retry is to be done.
Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]
retry_methods Array of string The http methods on which retry is to be done.
Default: ['GET', 'PUT']
authorization_code_auth_credentials AuthorizationCodeAuthCredentials The credential object for OAuth 2 Authorization Code Grant

The API client can be initialized as follows:

client = DropboxClient(
    authorization_code_auth_credentials=AuthorizationCodeAuthCredentials(
        o_auth_client_id='OAuthClientId',
        o_auth_client_secret='OAuthClientSecret',
        o_auth_redirect_uri='OAuthRedirectUri'
    ),
    environment=Environment.PRODUCTION,
    basepath='api.dropboxapi.com'
)

Authorization

This API uses the following authentication schemes.

List of APIs

SDK Infrastructure

HTTP

Utilities

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dropbox_sdk-1.0.0.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dropbox_sdk-1.0.0-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file dropbox_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: dropbox_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for dropbox_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7a1eccbf01e0db7ae7cf8da48a3473a412d9e2042919cbd68d54f4ad3a333dfa
MD5 f8958c01924f7fc078e8645d46f4e03f
BLAKE2b-256 b2054dea19e59c26d3c000284edba07f45dcfa18929fe267e77f2240d0ad5bae

See more details on using hashes here.

File details

Details for the file dropbox_sdk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: dropbox_sdk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for dropbox_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a186a9b9652d031f96b6cf7173a89c306fc9ace8ac6915305cc59ffc5607d1d
MD5 2420008f44443414be62b4b2db045308
BLAKE2b-256 a48f6c35631de165694385828472a9f3c04d2b346e8a870d56fb4fc0cbb690bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page