public function exec($resourceUrl, $postString = '')
    {
        $url = UrlBuilder::buildApiUrl($resourceUrl);
        $headers = $this->getHttpHeaders();
        $postString = $this->filePathToUpload ? $this->postFileData : $postString;

        $result = $this
            ->httpClient
            ->execute($url, $postString, $headers);

        $this->setTokenFromCookies();

        $this->filePathToUpload = null;

        return $result;
    }
public function exec($resourceUrl, $postString = '')
    {
        $url = UrlBuilder::buildApiUrl($resourceUrl);
        $headers = $this->getHttpHeaders();
        $postString = $this->filePathToUpload ? $this->postFileData : $postString;

        $result = $this
            ->httpClient
            ->execute($url, $postString, $headers);

        $this->setTokenFromCookies();

        $this->filePathToUpload = null;

        return $result;
    }
public function exec ( $ resourceUrl , $ postString = '' ) { $ url = UrlBuilder :: buildApiUrl ( $ resourceUrl ) ; $ headers = $ this -> getHttpHeaders ( ) ; $ postString = $ this -> filePathToUpload ? $ this -> postFileData : $ postString ; $ result = $ this -> httpClient -> execute ( $ url , $ postString , $ headers ) ; $ this -> setTokenFromCookies ( ) ; $ this -> filePathToUpload = null ; return $ result ; }
Executes request to Pinterest API.

@param string $resourceUrl
@param string $postString

@return string
Executes request to Pinterest API .