File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 27
27
echo $ helper ->getContent ();
28
28
} elseif (!empty ($ _GET ['key ' ]) && !empty ($ _GET ['secret ' ]) && $ _GET ['oauth ' ] !== 'redirect ' ) {
29
29
$ credentials = new Credentials ($ _GET ['key ' ], $ _GET ['secret ' ], $ helper ->getCurrentUrl ());
30
- $ vkService = new Amazon ($ credentials , $ client , $ storage );
30
+ $ service = new Amazon ($ credentials , $ client , $ storage );
31
31
echo $ helper ->getHeader ();
32
- echo '<a href=" ' . $ vkService ->getAuthorizationUri () . '">get access token</a> ' ;
32
+ echo '<a href=" ' . $ service ->getAuthorizationUri () . '">get access token</a> ' ;
33
33
echo $ helper ->getFooter ();
34
34
} elseif (!empty ($ _GET ['code ' ])) {
35
35
$ credentials = new Credentials ($ _GET ['key ' ], $ _GET ['secret ' ], $ helper ->getCurrentUrl ());
36
- $ vkService = new Amazon ($ credentials , $ client , $ storage );
36
+ $ service = new Amazon ($ credentials , $ client , $ storage );
37
37
38
38
echo $ helper ->getHeader ();
39
39
40
40
try {
41
- $ token = $ vkService ->requestAccessToken ($ _GET ['code ' ]);
41
+ $ token = $ service ->requestAccessToken ($ _GET ['code ' ]);
42
42
echo 'access token: ' . $ token ->getAccessToken ();
43
43
} catch (TokenResponseException $ exception ) {
44
44
$ helper ->getErrorMessage ($ exception );
You can’t perform that action at this time.
0 commit comments