public function post($resourceUrl, array $requestOptions = [], $returnData = false)
    {
        $postString = $this->request->createQuery($requestOptions);

        // When executing POST request we need a csrf-token.
        $this->initTokenIfRequired();

        $this->execute($resourceUrl, $postString);

        return $returnData ? $this->response->getResponseData() : $this->response->isOk();
    }
public function post($resourceUrl, array $requestOptions = [], $returnData = false)
    {
        $postString = $this->request->createQuery($requestOptions);

        // When executing POST request we need a csrf-token.
        $this->initTokenIfRequired();

        $this->execute($resourceUrl, $postString);

        return $returnData ? $this->response->getResponseData() : $this->response->isOk();
    }
public function post ( $ resourceUrl , array $ requestOptions = [ ] , $ returnData = false ) { $ postString = $ this -> request -> createQuery ( $ requestOptions ) ; // When executing POST request we need a csrf-token. $ this -> initTokenIfRequired ( ) ; $ this -> execute ( $ resourceUrl , $ postString ) ; return $ returnData ? $ this -> response -> getResponseData ( ) : $ this -> response -> isOk ( ) ; }
Executes a POST request to Pinterest API.

@param string $resourceUrl
@param array $requestOptions
@param bool $returnData
@return bool|array
Executes a POST request to Pinterest API .