From 20bae92e21bb2eda82d704a5c6e52f05e1d9e639 Mon Sep 17 00:00:00 2001 From: Steven Wade Date: Wed, 22 Mar 2017 16:16:52 -0400 Subject: [PATCH] Fix bug that pointed the resource owner details URL to the wrong URI --- src/Provider/HubSpot.php | 2 +- tests/src/HubSpotTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Provider/HubSpot.php b/src/Provider/HubSpot.php index f29a7b9..e66be89 100644 --- a/src/Provider/HubSpot.php +++ b/src/Provider/HubSpot.php @@ -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(); } /** diff --git a/tests/src/HubSpotTest.php b/tests/src/HubSpotTest.php index 1f47510..c667caf 100644 --- a/tests/src/HubSpotTest.php +++ b/tests/src/HubSpotTest.php @@ -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()