Skip to content

Commit

Permalink
Fixed function name
Browse files Browse the repository at this point in the history
  • Loading branch information
PetterKraabol committed Nov 15, 2016
1 parent 380ab73 commit 3aad4d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 1.3.5
- Function name fix.

## 1.3.4

- New function `getAccessObject($code, $state = null)` to retrieve full response object when requesting access_token from Twitch. Use this instead of `getAccessToken($code, $state = null)` which is now deprecated.
Expand Down
6 changes: 3 additions & 3 deletions src/Services/TwitchApiService.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
class TwitchApiService extends Api
{
/**
* Authentication.
*/
* Authentication.
*/
public function getAuthenticationUrl($state = null, $forceVerify = false)
{
$authentication = new Authentication();
Expand All @@ -37,7 +37,7 @@ public function getAccessToken($code, $state = null)
return $authentication->getAccessToken($code, $state);
}

public function getAccessToken($code, $state = null)
public function getAccessObject($code, $state = null)
{
$authentication = new Authentication();

Expand Down

0 comments on commit 3aad4d0

Please sign in to comment.