public function post($dataArray, $url = null, $wrapData = true)
    {
        if (!$url) $url = $this->generateUrl();

        if ($wrapData && !empty($dataArray)) $dataArray = $this->wrapData($dataArray);

        $response = HttpRequestJson::post($url, $dataArray, $this->httpHeaders);

        return $this->processResponse($response, $this->resourceKey);
    }
public function post($dataArray, $url = null, $wrapData = true)
    {
        if (!$url) $url = $this->generateUrl();

        if ($wrapData && !empty($dataArray)) $dataArray = $this->wrapData($dataArray);

        $response = HttpRequestJson::post($url, $dataArray, $this->httpHeaders);

        return $this->processResponse($response, $this->resourceKey);
    }
public function post ( $ dataArray , $ url = null , $ wrapData = true ) { if ( ! $ url ) $ url = $ this -> generateUrl ( ) ; if ( $ wrapData && ! empty ( $ dataArray ) ) $ dataArray = $ this -> wrapData ( $ dataArray ) ; $ response = HttpRequestJson :: post ( $ url , $ dataArray , $ this -> httpHeaders ) ; return $ this -> processResponse ( $ response , $ this -> resourceKey ) ; }
Call POST method to create a new resource

@param array $dataArray Check Shopify API reference of the specific resource for the list of required and optional data elements to be provided
@param string $url
@param bool $wrapData

@uses HttpRequestJson::post() to send the HTTP request

@return array
Call POST method to create a new resource