diff --git a/sample/oauth/lib/Evernote/Client.php b/sample/oauth/lib/Evernote/Client.php index e8044d4..97811dc 100644 --- a/sample/oauth/lib/Evernote/Client.php +++ b/sample/oauth/lib/Evernote/Client.php @@ -45,14 +45,14 @@ public function getRequestToken($callbackUrl) { $oauth = new \OAuth($this->consumerKey, $this->consumerSecret); - return $oauth->getRequestToken($this->getEndpoint('oauth'), $callbackUrl); + return $oauth->getRequestToken($this->getEndpoint('oauth'), $callbackUrl, OAUTH_HTTP_METHOD_GET); } public function getAccessToken($oauthToken, $oauthTokenSecret, $oauthVerifier) { $oauth = new \OAuth($this->consumerKey, $this->consumerSecret); $oauth->setToken($oauthToken, $oauthTokenSecret); - $accessToken= $oauth->getAccessToken($this->getEndpoint('oauth'), null, $oauthVerifier); + $accessToken= $oauth->getAccessToken($this->getEndpoint('oauth'), null, $oauthVerifier, OAUTH_HTTP_METHOD_GET); $this->token = $accessToken['oauth_token'];