How do I insert into non-default Google Calendar using Zend / PHP

Active3 hr before
Viewed126 times

7 Answers


The thing is I have no idea how to set up the client, get the access token and call the API with it. So far I have installed Google API using composer:

   "require": {
      "php": ">=5.3.3",
      "zendframework/zendframework": "2.3.*",
      "dlu/dlutwbootstrap": "dev-master",
      "google/apiclient": "1.0.*@beta"
load more v

User is used to specify the user whose calendar is being searched for, and is specified as an email address. If no user is provided, "default" will be used instead to indicate the currently authenticated user (if authenticated). , Title provides the headline that will appear above the event within the Google Calendar UI. , Hidden removes the event from the Google Calendar UI. , Content provides additional information about the event which appears when the event details are requested from within Google Calendar.

The example below shows how to create a Calendar service class using ClientAuth authentication:

< ? php
require_once 'Zend/Loader.php';

// Parameters for ClientAuth authentication
$service = Zend_Gdata_Calendar::AUTH_SERVICE_NAME;
$user = "";
$pass = "pa$$w0rd";

// Create an authenticated HTTP client
$client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $service);

// Create an instance of the Calendar service
$service = new Zend_Gdata_Calendar($client);

Finally, an unauthenticated server can be created for use with either public feeds or MagicCookie authentication:

< ? php
require_once 'Zend/Loader.php';

// Create an instance of the Calendar service using an unauthenticated HTTP client

$service = new Zend_Gdata_Calendar();
load more v

Thing 8 – I Dream of Google Calendars « Librarian in a Nutshell, 2011-08-05,PHP Developer’s Guide (for Google Calendar),I came across this article on IBM DeveloperWorks today, “Integrate your PHP application with Google Calendar”, that nicely extends Andrew’s piece. ,You will need to create the table libhours in one of your MySQL databases. The following SQL may be used to generate libhours.

You will need to create the table libhours in one of your MySQL databases. The following SQL may be used to generate libhours.

CREATE TABLE libhours(
   ymd varchar(10) default NULL, #(YYYY - MM - DD) One entry
   for each day dow varchar(10) default NULL, # Day of the Week opening varchar(10) default NULL, # Opening time closing varchar(10) default NULL, # Closing time is_closed integer(1) default 0 # 0(open) or 1(closed)
load more v

Configuration settings that are disabled in index.php are no longer editable from the Admin.,Editing products in the Admin no longer triggers Redis errors.,A store’s Admin URL no longer redirects to the storefront URL when these two URLs differ.,Configure Application

Merchants upgrading to pre-release versions of Magento 2.3.5 and security-only patch 2.3.4-p1 and whose deployments contain bundle products may encounter the following error during upgrade:

Module ‘Magento_Wishlist’: Unable to apply data patch Magento\Wishlist\Setup\Patch\Data\CleanUpData for module Magento_Wishlist. Original exception message: Unable to unserialize value. Error: Syntax error

   Unable to apply data patch Magento\ Wishlist\ Setup\ Patch\ Data\ CleanUpData
for module Magento_Wishlist.Original exception message: Unable to unserialize value.Error: Syntax error
load more v

You should try to upgrade to the latest stable version quickly - PHP 5.6 is already End of Life. Upgrading is easy, as there are not many backwards compatibility breaks. If you are not sure which version a function or feature is in, you can check the PHP documentation on the website.,Recursion, a feature that allows a function to call itself, is supported by the language, but most PHP code is focused on iteration.,While there are many other solutions to doing this - depending on if you prefer OOP or functional programming - there must be some element of separation.,Infection is a PHP implementation of Mutation Testing to help to measure the effectiveness of your tests.

> php - S localhost: 8000
load more v

Issue: 8771 - Silent failure when no PHP-json module installed, Issue: 8771 - Silent failure when no PHP-json module installed ,PR: 8898 - Retrieve SuiteCRM version in get_server_info, PR: 8898 - Retrieve SuiteCRM version in get_server_info

use Interop\ Container\ ContainerInterface;
load more v

Ask Sawal is a fast growing question and answer discussion forum.,Constant moderation and reporting option makes questions and answers spam free.,Note: Learn JavaScript, PHP and MySQL by building the ultimate social network website from scratch! The complete guide!. Reece Kenney is the instructor of this tutorials.,Finally, this project is a lot of fun and I know you'll have a great time implementing your own unique ideas as well as the ones we implement together. What are you waiting for? 

load more v

Other "using-google" queries related to "How do I insert into non-default Google Calendar using Zend / PHP"