Generate your JWT Token
This tutorial will introduce you to the Reporting API, DoorDash's API for requesting operational and financial data.
Table of contents
- Sign into the Developer Portal
- Create an access key
- Install pre-requisites and create a project
- Make a JWT
Sign into the Developer Portal
Go to the
Developer Portal
using the link in the top right corner of this page. If you already have a DoorDash account, enter your email and password and sign in; if not, or if you want to use a different account for development, click Sign Up and follow the process to create an account.
Create an access key
In the left navigation, click Credentials.
On the Credentials page, click the plus (+) icon in the center of the page to create a new access key. You'll use this access key to create a JSON Web Token (JWT) that you can use to make requests to the Drive API.
Name your key test-app and click Create Access Key.
Click Copy to copy the access key to your clipboard and then paste it somewhere where you can access it later in the tutorial.
Install pre-requisites and create a project
- Node.js
- Python
- PHP
- Kotlin
- C#
If you don't already have them, install Node.js and npm.
Then, create a directory for your project called test-app and then create a new file named app.js.
If you don't already have it, install Python.
Then, create a directory for your project called test-app and then create a new file named app.py.
If you don't already have it, install PHP.
Then, create a directory called test-app and then create a new file named doordash.php.
If you don't already have them, install Kotlin, a JDK (such as Amazon Corretto 17), and a build automation tool (such as Gradle).
Then, create a new project in your IDE (such as IntelliJ IDEA) and modify the Main.kt file with sample code below.
If you don't already have it, install .NET.
Create a directory for your project called test-app and then run dotnet new console. Alternatively, you can create, build, and run your sample application in variety of IDEs, including Visual Studio Code, Visual Studio, and JetBrains Rider.