original_string: public function create(Product &$product)
      {
          $data = $product->exportData();
          $endpoint = '/admin/products.json';
          $response = $this->request(
              $endpoint, 'POST', array(
              'product' => $data
              )
          );
          $product->setData($response['product']);
      }
code: public function create(Product &$product)
      {
          $data = $product->exportData();
          $endpoint = '/admin/products.json';
          $response = $this->request(
              $endpoint, 'POST', array(
              'product' => $data
              )
          );
          $product->setData($response['product']);
      }
code_tokens: public function create ( Product & $ product ) { $ data = $ product -> exportData ( ) ; $ endpoint = '/admin/products.json' ; $ response = $ this -> request ( $ endpoint , 'POST' , array ( 'product' => $ data ) ) ; $ product -> setData ( $ response [ 'product' ] ) ; }
docstring: Create a new Product
  
  @link   https://help.shopify.com/api/reference/product#create
  @param  Product $product
  @return void
docstring_tokens: Create a new Product