Skip to content

Commit

Permalink
fix oauth token call
Browse files Browse the repository at this point in the history
  • Loading branch information
glena committed Mar 16, 2017
1 parent c19038f commit f695294
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/API/Authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ public function oauth_token($options = []) {
$options['client_id'] = $this->client_id;
}

if (! isset($options['client_secret'])) {
$options['client_secret'] = $this->client_secret;
}

if (! isset($options['grant_type'])) {
throw new ApiException('grant_type is mandatory');
}
Expand Down

0 comments on commit f695294

Please sign in to comment.