Skip to content

Commit

Permalink
Fix bug that pointed the resource owner details URL to the wrong URI
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenwadejr committed Mar 22, 2017
1 parent fe00996 commit 20bae92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Provider/HubSpot.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function getBaseAccessTokenUrl(array $params)

public function getResourceOwnerDetailsUrl(AccessToken $token)
{
return $this->baseApiUrl . '/access-token/' . $token->getToken();
return $this->baseApiUrl . '/access-tokens/' . $token->getToken();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/src/HubSpotTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function testGetResourceOwnerDetailsUrl()
$uri = parse_url($url);

$this->assertEquals('api.hubapi.com', $uri['host']);
$this->assertEquals('/oauth/v1/access-token/' . $token, $uri['path']);
$this->assertEquals('/oauth/v1/access-tokens/' . $token, $uri['path']);
}

public function testGetAccessToken()
Expand Down

0 comments on commit 20bae92

Please sign in to comment.