Giter Site home page Giter Site logo

doordashapi-python-sample's Introduction

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.

doordashapi-python-sample's People

Contributors

joshatdoordash avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.