MeshAPI
MeshAPI copied to clipboard
API for Mesh Commerce written in Python
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
- 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.
Troubleshooting
-
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.
Todos
- Web based GUI
- Auto-checkout
License
MIT License (MIT)