Skip to content

Commit 5bcf412

Browse files
committed
Fix Var Names
1 parent 3ed7683 commit 5bcf412

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ $twitch_client_secret = 'TWITCH_CLIENT_SECRET';
4141
$twitch_scopes = '';
4242

4343
$helixGuzzleClient = new \TwitchApi\HelixGuzzleClient($twitch_client_id);
44-
$TwitchApi = new \TwitchApi\TwitchApi($helixGuzzleClient, $twitch_client_id, $twitch_client_secret);
45-
$oauth = $TwitchApi->getOauthApi();
44+
$twitchApi = new \TwitchApi\TwitchApi($helixGuzzleClient, $twitch_client_id, $twitch_client_secret);
45+
$oauth = $twitchApi->getOauthApi();
4646

4747
try {
4848
$token = $oauth->getAppAccessToken($twitch_scopes ?? '');
@@ -63,8 +63,8 @@ $twitch_client_secret = 'TWITCH_CLIENT_SECRET';
6363
$twitch_scopes = '';
6464

6565
$helixGuzzleClient = new \TwitchApi\HelixGuzzleClient($twitch_client_id);
66-
$TwitchApi = new \TwitchApi\TwitchApi($helixGuzzleClient, $twitch_client_id, $twitch_client_secret);
67-
$oauth = $TwitchApi->getOauthApi();
66+
$twitchApi = new \TwitchApi\TwitchApi($helixGuzzleClient, $twitch_client_id, $twitch_client_secret);
67+
$oauth = $twitchApi->getOauthApi();
6868

6969
// Get the code from URI
7070
$code = $_GET['code'];
@@ -105,8 +105,8 @@ $twitch_scopes = '';
105105
$user_refresh_token = 'REFRESH_TOKEN';
106106

107107
$helixGuzzleClient = new \TwitchApi\HelixGuzzleClient($twitch_client_id);
108-
$TwitchApi = new \TwitchApi\TwitchApi($helixGuzzleClient, $twitch_client_id, $twitch_client_secret);
109-
$oauth = $TwitchApi->getOauthApi();
108+
$twitchApi = new \TwitchApi\TwitchApi($helixGuzzleClient, $twitch_client_id, $twitch_client_secret);
109+
$oauth = $twitchApi->getOauthApi();
110110

111111
try {
112112
$token = $oauth->getAppAccessToken($twitch_scopes ?? '');
@@ -143,11 +143,11 @@ $twitch_access_token = 'the token';
143143
$helixGuzzleClient = new \TwitchApi\HelixGuzzleClient($twitch_client_id);
144144

145145
// Instantiate TwitchApi. Can be done in a service layer and injected as well.
146-
$TwitchApi = new TwitchApi($helixGuzzleClient, $twitch_client_id, $twitch_client_secret);
146+
$twitchApi = new TwitchApi($helixGuzzleClient, $twitch_client_id, $twitch_client_secret);
147147

148148
try {
149149
// Make the API call. A ResponseInterface object is returned.
150-
$response = $TwitchApi->getUsersApi()->getUserByAccessToken($twitch_access_token);
150+
$response = $twitchApi->getUsersApi()->getUserByAccessToken($twitch_access_token);
151151

152152
// Get and decode the actual content sent by Twitch.
153153
$responseContent = json_decode($response->getBody()->getContents());

0 commit comments

Comments
 (0)