Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 1.55 KB

README.md

File metadata and controls

57 lines (44 loc) · 1.55 KB

MeshAPI

API for Mesh Commerce written in Python by Luke Davis (@R8T3D)

Features

  • Add products to cart
  • Check products stock
  • Multi-site support with easy expandability

Installation

MeshAPI requires Python 2.7

1. Install requirements
$ cd DIRECTORY_CONTAINING_MESHAPI
$ pip install -r requirements.txt
2. Set your cart_id

Edit the main.py file and set the cart_id variables to the corresponding site's cart-id. I can't tell you how to get this

3. Run
$ cd DIRECTORY_CONTAINING_MESHAPI
$ python main.py
3. Stock Check or ATC

Stock Check

  1. Fully close the site's mobile app on your phone.
  2. Type in your desired PID and then press enter.
  3. The item's stock/status should now display.

ATC

  1. Fully close the site's mobile app on your phone.
  2. Type in your desired PID.SIZE and then press enter.
  3. Open the app
  4. The item should now be in your cart.

Troubleshooting

  1. The item isn't in my cart what happened?

    • Your cart id is incorrect
    • Your PID.SIZE is incorrect
    • The desired product is out of stock
  2. How do I get the cart IDs? Vaguely, you need to view the network requests of your mobile device and get it from there.

  3. What are the x-api-keys? The x-api-key allows you to change the script to work for other websites besides the ones specified (but you need to do a bit more than just change that). I thought I'd make it a variable incase they ever change it.

Todos

  • Web based GUI
  • Auto-checkout

License

MIT License (MIT)