Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6127893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:33:53+00:00 2026-05-23T16:33:53+00:00

Could someone show some example about using dropbox api with django? Dropbox api is

  • 0

Could someone show some example about using dropbox api with django?
Dropbox api is installed, readme is done, tests are done, how to go further?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:33:53+00:00Added an answer on May 23, 2026 at 4:33 pm

    Yes, you need to understand, how oauth works.
    Consider the use-case, when you are trying to store uploaded files directly on user’s dropbox account.
    First of all, you have to register a developer account on dropbox site.
    In your django views, a typical workflow is this:

    1. ask dropbox for a request token, (it
      notifies them that you will use
      their api soon)

      dba = auth.Authenticator(app_settings.CONFIG)

      request_token = dba.obtain_request_token()

      it’s in the api’s documentation how to
      set up the config file

    2. than you build an authentication url:

      authorize_url = dba.build_authorize_url(request_token, callback='http://...'

      the user sign in at dropbox.com, than
      redirected back to your site

      you should store now the request
      token, but it’s only useful to get the
      access token!

    3. you use the request token to get an
      access token, it’s now unique to the
      user.

      access_token = dba.obtain_access_token(request_token, 'verifier')

      leave the verifier blank, it’s preserved do future usage!
      store the access token, you need it in any further operation(per session)

    4. here you are! you should instantiate a client, it’s defined
      in the python-specific dropbox
      package

      drpbx_client = client.DropboxClient('server','content_server','port',dba,access_token)

      the client is a helper object for file operations:

      drpbx_client.put_file('dropbox', '/porn/', request.FILES['file'])

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given the example below, can someone please show me how this could be called?
Can someone please show a simple, but complete example of how one could use
Could someone show me some TSQL to use to query an xml file as
Could someone show me a regular expression that would look through this document and
Could someone show me a practical a use of the ... array method delcaration?
Could someone show me in a snipet of code how to set the backlight
Could someone please demystify interfaces for me or point me to some good examples?
I would like to know if someone could provide example or a link on
Could someone recommend any good resources for creating Graphics User Interfaces, preferably in C/C++?
Could someone tell me what the units the SetTimeout(int) method in the ICriteria interface

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.