Python Library Quickstart
Configure Project
- First install the library.
$ pip install dapi-python
- Create a Dapi client instance with your App Secret.
from dapi import DapiClient
client = DapiClient(app_secret="YOUR_APP_SECRET")
- Now you can use any of the functions of the
DapiApp
instance,myApp
. Here is an example forgetAccounts
.
from dapi import DapiClient
client = DapiClient(app_secret="YOUR_APP_SECRET")
accounts_resp = client.data.getAccounts("YOUR_ACCESS_TOKEN", "YOUR_USER_SECRET")
Updated 10 months ago