News for hackers. Stuff that matters.
Re:T-Shirt Printing API by e-dard on Saturday June 15, 2013 @06:30AM (#5884678)
Just an FYI regarding your documentation, of example GET requests (e.g., https://www.shirts.io/docs/quote_reference/)

You can describe GET requests as follows with cURL, which I find a bit smarter :-)

  curl -G https://www.shirts.io/api/v1/quote/ \
  -d "api_key=APIKEY" \
  -d "garment[0][product_id]=3" \
  -d "garment[0][color]=White" \
  -d "garment[0][sizes][med]=100" \
  -d "garment[0][sizes][lrg]=50"
In cases where you need to url-encode the parameter, you can switch out -d for --data-urlencode

There are no comments on this comment yet.