

ParameterĪPI client can be initialized as following. In order to setup authentication and initialization of the API client, you need the following information. Invoke pip install -r test-requirements.txt.From terminal/cmd navigate to the root directory of the SDK.unittest is used as the testing framework and nose is used as the test You can test the generated SDK and the server with automatically generated testĬases. To run the file within your test project, right click on your Python file inside your Test project and click on Run Sample code is given in the subsequent sections. In your python file you will be required to import the generated python library using the following code lines from dropbox_test_api_bearer_token.dropbox_test_api_bearer_token_client import DropboxTestApiBearerTokenClientĪfter this you can write code to instantiate an API client object, get a controller object and make API calls.

The project files will be displayed in the side bar as follows:Ĭreate a new directory by right clicking on the solution name as shown below:Īdd a python file to this project with the name "testsdk" The basic workflow presented here is also applicable if you prefer using a different editor or IDE.Ĭlick on Open in P圜harm to browse to your generated SDK directory and then click OK. The following section explains how to use the DropboxTestApiBearerToken SDK package in a new project. This should install all the required dependencies.

Using command line, navigate to the directory containing the generated files (including requirements.txt) for the SDK.This should display the version of the PIP Dependency Manager installed if your installation was successful and the paths are properly defined.

Open command prompt and type pip -version. Python and PIP executables should be defined in your PATH. To resolve these dependencies, you can use the PIP Dependency manager. These dependencies are defined in the requirements.txt file that comes with the SDK. This SDK package depends on other Python packages like nose, jsonpickle etc. You must have Python 2 >=2.7.9 or Python 3 >=3.4 installed on your system to install and run this SDK. API for testing OAuth2 with Dropbox How to Build
