Skip to content

Instantly share code, notes, and snippets.

Avatar

Mike Paszkiewicz mikepaszkiewicz

View GitHub Profile
View dispatch.vendors.get
// vendorId is optional, and will return an array of all businesses if not present
curl -X GET https://dispatch.tryhabitat.com/api/v1/vendors/ \
-H 'cache-control: no-cache' \
-H 'Content-Type: application/json' \
-d '{"api_key": "YOUR_API_KEY", "vendorId": "VENDOR_ID"}'
View gist:b172879773caaa9ee9f4ca8c512694f9
Packages needed
- (json-2-csv)[https://www.npmjs.com/package/json-2-csv]
- (ddp)[https://www.npmjs.com/package/ddp]
1. Run command takes 3 arguments:
- Filename of CSV to read
- Meteor collection name
- DDP URL String (localhost:3001/meteor most likely...)
2. Read CSV from file system
View dispatch.orders.post
curl -XPOST 'https://sandbox.tryhabitat.com/api/v1/orders' -H "Content-type: application/json" -d '{
"externalId": 1876,
"externalVendorId": 101,
"sellerId": "gRWS4txHe3g43AtNm",
"method": "Delivery",
"deliveryAddress": "2198 N Broad St",
"status": "pending_runner",
"customer":{
"name": "Tyler Wiest",
"phone": "2169052356",
@mikepaszkiewicz
mikepaszkiewicz / Dockerrun.aws.json
Created Mar 6, 2017 — forked from philipithomas/Dockerrun.aws.json
Staffjoy Elastic Beanstalk Deploy Script
View Dockerrun.aws.json
{
AWSEBDockerrunVersion: "1",
Authentication: {
Bucket: "staffjoy-deploy",
Key: "docker.cfg"
},
Image: {
Name: "staffjoy/app:TAG",
Update: "true"
},
You can’t perform that action at this time.