API for Mesh Commerce written in Python by Luke Davis (@R8T3D)
- Add products to cart
- Check products stock
- Multi-site support with easy expandability
MeshAPI requires Python 2.7
$ cd DIRECTORY_CONTAINING_MESHAPI
$ pip install -r requirements.txt
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
$ cd DIRECTORY_CONTAINING_MESHAPI
$ python main.py
Stock Check
- Fully close the site's mobile app on your phone.
- Type in your desired PID and then press enter.
- The item's stock/status should now display.
ATC
- Fully close the site's mobile app on your phone.
- Type in your desired PID.SIZE and then press enter.
- Open the app
- The item should now be in your cart.
-
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
-
How do I get the cart IDs? Vaguely, you need to view the network requests of your mobile device and get it from there.
-
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.
- Web based GUI
- Auto-checkout
MIT License (MIT)