Git Product home page Git Product logo

pizzapi's Introduction

pizzapy

Disclaimer

This is my fork of https://github.com/Magicjarvis/pizzapi It has been modified to add a new package called code_for_pizza.

There are modifications to the original code, sorry! in advance for the messy documentation.

Setup

  1. install python3
  2. download this repository
  3. install the requirements of the repository pip install -r requirements.txt
  4. start a python3 interpreter inside of the folder called pizzapy, so it will be in the PYTHONPATH
  5. import pizzapy and if it works, great !

Description

This is a Python wrapper for the Dominos Pizza API.

It's a port of the pizzapi node.js module written by RIAEvangelist.

Quick Start

First go to code_for_pizza/dominos_test_order.py and change the details in Customer to your details.

The details already entered in the python file are a sample and do not actually work.

Just replace the details inside the Customer block to yours.

customer = Customer('Barack', 'Obama', '[email protected]', '2024561111', '700 Pennsylvania Avenue NW, Washington, DC, 20408')

Now switch over to code_for_pizza/order_pizza.py and add your github user_id and password.

g = Github('your_username','your_password')

Then simply type the following command from the pizzapy folder, which is one folder up:

python3 code_for_pizza/order_pizza.py

And just like that it should place the order for you !

Optional Step:

  1. You can put the user_id and password in a config file.
  2. Read it programmatically from the python script.
  3. Integrate twilio's API to send an SMS alert when an order is placed.

pizzapi's People

Contributors

aluttik avatar ggrammar avatar craigjmidwinter avatar n00b007 avatar magicjarvis avatar wrighterase avatar patoconnor43 avatar russeii avatar

Watchers

James Cloos avatar  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.