This sample is an example of how to create a JWT using Java when calling the DoorDash API.
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 was built using Amazon Corretto 17 JDK and Gradle 7.5.1. The code source and build files provided in this repository are samples and not intended for production, and are not supported.
This sample uses an IntelliJ IDEA project. You may use different IDE, but this sample is configured for IntelliJ IDEA. If using a different IDE, the source you'll want to copy is in TODO.
Follow these steps to run the sample app:
- Clone repository locally.
- Open the project located in the
source/DoorDashAPIJavaSample
folder with IntelliJ IDEA. - Open the
DoorDash.java
file (located insource/DoorDashAPIJavaSample/src/main/java/org/example/doordash/
) in your editor and resolve all TODO items listed in comments, save changes. - Build and run the application.
- 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.