Skip to content

Instantly share code, notes, and snippets.

View pmdeazeta's full-sized avatar

Philip Mark Deazeta pmdeazeta

View GitHub Profile

Keybase proof

I hereby claim:

  • I am pmdeazeta on github.
  • I am pmdeazeta (https://keybase.io/pmdeazeta) on keybase.
  • I have a public key ASCcDpgkkl-XpCoh6SdSx5PA2Z2nesC9tyz6nivRQPGufgo

To claim this, I am signing this object:

@pmdeazeta
pmdeazeta / Non-public-API.rb
Last active September 3, 2018 02:27
Non-public-API.rb
### Create new product
curl -X POST -H "Content-type: application/json" -H "Authorization: Bearer 7f2ba72ae693b57e18" https://api.tradegecko.com/products/ -d '{"product":{"name":"Pucci","opt1":"Colour","supplier_ids": [9035460], "variants":[{"name": "Pucci1", "opt1": "RED", "initial_stock_level": 100, "initial_cost_price": 50, "retail_price": 30, "variant_prices":[{"price_list_id": "249", "value": "43"}]}]}}'
{"product":
{
"name":"Pucci",
"opt1":"Colour",
"supplier_ids": [9035460],
"variants":[
{