Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 561 Bytes

sample_curl.md

File metadata and controls

31 lines (20 loc) · 561 Bytes

Sample Curl Scripts

Authentication

Sign In

EMAIL="a@a.com" PASSWORD="a" sh curl-scripts/auth/sign-in.sh

Sign Out

TOKEN=53fa9f21d13bd4g09fdb163c7c9acf65 sh curl-scripts/auth/sign-out.sh 

Products

Create Product

TOKEN=53fa9f21d13bd4g09fdb163c7c9acf65 NAME="Thing" DESC="some details" PRICE="99" CLASS="market" CAT="Cameras" IMG="someurl" sh curl-scripts/product/create.sh 

Purchases

Create Purchase

TOKEN=53fa9f21d13bd4g09fdb163c7c9acf65 PRODUCT="Thing" PRICE="99" sh curl-scripts/purchase/create.sh