_post('products', $parameters); } /** * Retrieves an existing product. * * @param string $productId * @return array */ public function find($productId) { return $this->_get("products/{$productId}"); } /** * Updates an existing product. * * @param string $productId * @param array $parameters * @return array */ public function update($productId, array $parameters = []) { return $this->_post("products/{$productId}", $parameters); } /** * Deletes an existing product. * * @param string $productId * @return array */ public function delete($productId) { return $this->_delete("products/{$productId}"); } /** * Returns a list of all the products. * * @param array $parameters * @return array */ public function all(array $parameters = []) { return $this->_get('products', $parameters); } }