http://livingcode.co/index.php/tag/one-time-authorization-code/ http://martinfowler.com/articles/command-line-google.html New API doc here: https://developers.google.com/api-client-library/php/auth/web-app library: https://github.com/google/google-api-php-client index.php <?php // require_once 'google-api-php-client/autoload.php'; require_once 'google-api-php-client/src/Google/autoload.php'; session_start(); $client = new Google_Client(); $client->setAuthConfigFile('client_secrets.json'); $client->setAccessType("offline"); $client->addScope(Google_Service_Calendar::CALENDAR); if (isset($_SESSION['access_token']) && $_SESSION['access_token']) { $client->setAccessToken($_SESSION['access_token']); // echo $client->getAccessToken(); $cal = new Google_Service_Calendar($client); $params = array( //CAN'T USE TIME MIN WITHOUT SINGLEEVENTS TURNED ON, //IT SAYS TO TREA...
Some tribes of the programmer clan.