def create(product)
      validate_type!(product)

      attributes = sanitize(product)
      _, _, root = @client.post("/products", attributes)

      Product.new(root[:data])
    end
def create(product)
      validate_type!(product)

      attributes = sanitize(product)
      _, _, root = @client.post("/products", attributes)

      Product.new(root[:data])
    end
Create a product

 post '/products'

 Create a new product

 @param product [Product, Hash] Either object of the Product type or Hash. This object's attributes describe the object to be created.
 @return [Product] The resulting object represting created resource.