We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ed2b20 commit c30425fCopy full SHA for c30425f
src/Client.php
@@ -93,11 +93,16 @@ public function getHydrator()
93
*
94
* @param $uri
95
* @param array $parameters
96
+ * @param bool $accessToken
97
* @return bool
98
* @throws Exception
99
*/
- public function request($uri, array $parameters = array())
100
+ public function request($uri, array $parameters = array(), $accessToken = false)
101
{
102
+ if ($accessToken) {
103
+ $this->baseParameters['access_token'] = $this->accessToken;
104
+ }
105
+
106
$parameters = array_merge($this->baseParameters, $parameters);
107
108
$request = $this->httpClient->get($uri.'?'.http_build_query($parameters));
0 commit comments