You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Python SDK for integrating with the Dropbox API v2. Compatible with Python
32
-
2.7 and 3.4+. Documentation is available on `Read the Docs
33
-
<http://dropbox-sdk-python.readthedocs.org/>`_.
31
+
A Python SDK for integrating with the Dropbox API v2. Compatible with Python 2.7 and 3.4+. Documentation is available on `Read the Docs <http://dropbox-sdk-python.readthedocs.org/>`_.
34
32
35
33
Installation
36
34
------------
37
35
36
+
Create an app at https://dropbox.com/developers/apps
37
+
38
38
Install via `pip <https://pip.pypa.io/>`_:
39
39
40
40
.. code-block:: console
@@ -49,81 +49,29 @@ Install from source:
49
49
$ cd dropbox-sdk-python
50
50
$ python setup.py install
51
51
52
-
After installation, to get started, open a Python console:
53
-
54
-
.. code-block:: pycon
55
-
56
-
>>> import dropbox
57
-
>>> dbx = dropbox.Dropbox("YOUR_ACCESS_TOKEN")
58
-
>>> dbx.users_get_current_account()
59
-
60
-
Creating an Application
61
-
-----------------------
62
-
63
-
You need to create an Dropbox Application to make API requests.
64
-
65
-
- Go to https://dropbox.com/developers/apps.
52
+
After installation, to get started, follow one of our examples or read the documentation on `Read the Docs <http://dropbox-sdk-python.readthedocs.org/>`_.
66
53
67
-
Obtaining an Access Token
68
-
-------------------------
54
+
Authentication
55
+
--------------
69
56
70
-
All requests need to be made with an OAuth 2 access token. To get started, once
71
-
you've created an app, you can go to the app's console and generate an access
72
-
token for your own Dropbox account.
57
+
All requests need to be made with an OAuth 2 access token. To get started, once you've created an app, you can go to the app's console and generate an access
58
+
token for your own Dropbox account for development. You can also find a variety of examples outlining different authorization flows under:
To prepare the repo for generation, run these commands after cloning:
96
-
97
-
.. code-block:: console
63
+
Example Applications
64
+
--------------------
98
65
99
-
$ git submodule init
100
-
$ git submodule update
66
+
- `updown <http://github.com/dropbox/dropbox-sdk-python/tree/master/example/updown.py>`_ - A sample application that demonstrates simple file upload and download
101
67
102
-
You can run ``git pull`` within these sub repositories to update the pinned
103
-
version.
104
-
105
-
Now, run the included script:
68
+
Contributing
69
+
------------
106
70
107
-
.. code-block:: console
71
+
Contributions to this SDK are always welcome and encouraged!
108
72
109
-
$ ./generate_base_client.py
73
+
See the `CONTRIBUTING <http://github.com/dropbox/dropbox-sdk-python/blob/master/CONTRIBUTING.rst>`_ doc for more information
110
74
111
-
Testing
75
+
License
112
76
-------
113
-
114
-
We use the `tox <https://tox.readthedocs.org/>`_ package to run tests in Python
115
-
2 and 3. To install, use :code:`pip install tox`. Once installed, run `tox` from the
116
-
root directory. You'll need to specify a working Dropbox OAuth2 token:
0 commit comments