Skip to content

JoshAtDoorDash/DoorDashAPI-Python-Sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DoorDash API Python Sample

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.

Running Sample

Follow these steps to run the sample app:

  1. Clone repository locally.
  2. Open a terminal and navigate to the source folder.
  3. Install the pyjwt pip package by running the pip3 install pyjwt command.
  4. Install the requests pip package by running the pip3 install requests command.
  5. Install the uuid pip package by running the pip3 install uuid command.
  6. Open app.py in a text editor and resolve all TODO items listed in comments, save changes.
  7. Run python3 app.py in the terminal from source folder.

More About DoorDash Credentials

Related Utilities and Samples

Community

Please join the DoorDash Developer Discord community to provide feedback and ask questions about developing with the DoorDash API.

About

DoorDash API Python Sample

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages