Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Change authToken to Oauth #35

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Ahmedd-Ibrahim
Copy link

Allow Oauth Instead of authToken

src/Client.php Outdated
if ($httpClient && $requestOptions) {
$this->setRequestOauth($acessToken);

if ($httpClient && $this->requestOptions) {
throw new \InvalidArgumentException('If argument 4 is provided, argument 5 must be omitted or passed with an empty array as value');
}
$requestOptions += ['base_uri' => self::ENDPOINT, RequestOptions::HTTP_ERRORS => false];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix this line, make it like this

$this->requestOptions += ['base_uri' => self::ENDPOINT, RequestOptions::HTTP_ERRORS => false];

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants