Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $google_client = new Google_Client();
- $token = $google_client->generateAccessToken($_GET['code']);
- //Save token
- $fp = fopen('token.json', 'a');
- $write = fwrite($fp, $token);
- fclose($fp);
Add Comment
Please, Sign In to add comment