File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 echo $ helper ->getContent ();
2828} elseif (!empty ($ _GET ['key ' ]) && !empty ($ _GET ['secret ' ]) && $ _GET ['oauth ' ] !== 'redirect ' ) {
2929 $ credentials = new Credentials ($ _GET ['key ' ], $ _GET ['secret ' ], $ helper ->getCurrentUrl ());
30- $ vkService = new Amazon ($ credentials , $ client , $ storage );
30+ $ service = new Amazon ($ credentials , $ client , $ storage );
3131 echo $ helper ->getHeader ();
32- echo '<a href=" ' . $ vkService ->getAuthorizationUri () . '">get access token</a> ' ;
32+ echo '<a href=" ' . $ service ->getAuthorizationUri () . '">get access token</a> ' ;
3333 echo $ helper ->getFooter ();
3434} elseif (!empty ($ _GET ['code ' ])) {
3535 $ credentials = new Credentials ($ _GET ['key ' ], $ _GET ['secret ' ], $ helper ->getCurrentUrl ());
36- $ vkService = new Amazon ($ credentials , $ client , $ storage );
36+ $ service = new Amazon ($ credentials , $ client , $ storage );
3737
3838 echo $ helper ->getHeader ();
3939
4040 try {
41- $ token = $ vkService ->requestAccessToken ($ _GET ['code ' ]);
41+ $ token = $ service ->requestAccessToken ($ _GET ['code ' ]);
4242 echo 'access token: ' . $ token ->getAccessToken ();
4343 } catch (TokenResponseException $ exception ) {
4444 $ helper ->getErrorMessage ($ exception );
You can’t perform that action at this time.
0 commit comments