Skip to content

Commit

Permalink
Switch token requests to force GET method. Resolves #42 (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Born authored and inakiabt committed Oct 2, 2018
1 parent 62b2c96 commit 04d6e7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Etsy/EtsyClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function getRequestToken(array $extra = array())
$callback = $extra['callback'];
}
try {
return $this->oauth->getRequestToken($url, $callback);
return $this->oauth->getRequestToken($url, $callback, 'GET');
} catch (\OAuthException $e) {
throw new EtsyRequestException($e, $this->oauth);
}
Expand All @@ -93,7 +93,7 @@ public function getRequestToken(array $extra = array())
public function getAccessToken($verifier)
{
try {
return $this->oauth->getAccessToken($this->base_url . "/oauth/access_token", null, $verifier);
return $this->oauth->getAccessToken($this->base_url . "/oauth/access_token", null, $verifier, 'GET');
} catch (\OAuthException $e) {
throw new EtsyRequestException($e, $this->oauth);
}
Expand Down

0 comments on commit 04d6e7d

Please sign in to comment.