This sample is an example of how to create a JWT using PHP 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 PHP. The content is 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.
- Run
php -S localhost:8000
in the CLI. - Open a browser and open the
http://localhost:8000/doordash.php
location.
- 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.