This sample is an example of how to create a JWT using Python when calling the DoorDash API. Additionally, it creates a delivery request using the JWT.
It builds a token that is valid for 30 minutes. Please obtain a set of DoorDash Credentials (Developer ID, Key ID, and Signing Secret) in the DoorDash Developer Portal to use in the application.
This application targets Python version 3.11.2. The code source and build files provided in this repository are samples and not intended for production, and are not supported.
Follow these steps to run the sample app:
- Clone repository locally.
- Open a terminal and navigate to the source folder.
- Install the pyjwt pip package by running the
pip3 install pyjwt
command. - Install the requests pip package by running the
pip3 install requests
command. - Install the uuid pip package by running the
pip3 install uuid
command. - Open app.py in a text editor and resolve all TODO items listed in comments, save changes.
- Run
python3 app.py
in the terminal from source folder.
- auth0 JWT Debugger
- DoorDash API JWT JSFiddle Sample
- make-doordash-jwt CLI
- DoorDash API get started with Postman
- DoorDash SDK Example Application
Please join the DoorDash Developer Discord community to provide feedback and ask questions about developing with the DoorDash API.