Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add get_product_images and create_product_images method

  • Loading branch information...
commit f7b06b15fd60c09c29b88bcbc2061ba8e5d42ec3 1 parent b6bc1b5
セバスチャン authored

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  lib/bigcommerce/api.rb
8  lib/bigcommerce/api.rb
@@ -281,6 +281,14 @@ def get_products_customfield(product_id, custom_field_id)
281 281
       @connection.get("/products/#{product_id}/customfields/#{custom_field_id}", {})
282 282
     end
283 283
 
  284
+    def get_product_images(product_id, options={})
  285
+      @connection.get("/products/#{product_id}/images", options)
  286
+    end
  287
+    
  288
+    def create_product_images(product_id, options={})
  289
+      @connection.post("/products/#{product_id}/images", options)
  290
+    end
  291
+
284 292
     def get_products_images(options={})
285 293
       @connection.get("/products/images", options)
286 294
     end

0 notes on commit f7b06b1

Please sign in to comment.
Something went wrong with that request. Please try again.