/get_oauth_token.php

Description
Classes
Class Description
Google
Includes
require ("vendor/autoload.php") (line 17)

Get an OAuth2 token from Google.

* Install this script on your server so that it's accessible as [https/http]://<yourdomain>/<folder>/get_oauth_token.php e.g.: http://localhost/phpmail/get_oauth_token.php * Ensure dependencies are installed with 'composer install' * Set up an app in your Google developer console * Set the script address as the app's redirect URL If no refresh token is obtained when running this file, revoke access to your app using link: https://accounts.google.com/b/0/IssuedAuthSubTokens and run the script again. This script requires PHP 5.4 or later PHP Version 5.4

Functions
checkResponse (line 107)
void checkResponse ( $response,  $data)
  • $response
  • $data
createResourceOwner (line 122)
void createResourceOwner ( $response)
  • $response
getDefaultScopes (line 93)
void getDefaultScopes ()
getScopeSeparator (line 102)
void getScopeSeparator ()

Documentation generated on Sun, 28 Jul 2024 13:19:41 +0200 by phpDocumentor 1.4.4