Пример #1
0
 public void CreateProduct(ShoppyProductUpdate product)
 {
     MakeRequest("PUT", "/products/", product);
 }
Пример #2
0
 public void UpdateProduct(string id, ShoppyProductUpdate product)
 {
     MakeRequest("POST", "/products/" + id, product);
 }
Пример #3
0
 public ShoppyPayResponse Pay(ShoppyProductUpdate options)
 {
     return(MakeRequest("POST", "/pay", new { product = options }).Body.ToObject <JObject>().Value <JObject>("details").ToObject <ShoppyPayResponse>());
 }