google-api-php-client

Which PHP Script File is needed for ical() class in Google Calendar PHP API v3

半城伤御伤魂 提交于 2019-12-08 10:42:26
问题 I am getting an error in a PHP script I am building: Fatal error: Class 'ical' not found in /home/abc/public_html/app/mods/googleCalendar_3.0/cache_events.php on line 74 Here is a snippet from my script file: define('CLIENT_ID', 'ASDLJJLDSJLASDJLajdl;jdsljkASD;LKJASDLKJASD.apps.googleusercontent.com'); require_once('autoload.php'); // 2014-11-24 part of /usr/local/lib/php/google-api-php-client require_once('/usr/local/lib/php/google-api-php-client/src/Google/Client.php'); // 2014-11-25

Google api php client - error on loading controller page

我只是一个虾纸丫 提交于 2019-12-08 09:33:26
问题 I have used example from this site. I have just added the credentials and the line: require_once APPPATH . "libraries/google-api-php-client-master/src/Google/autoload.php"; in the controller. It gives the following error : Fatal error: Uncaught exception 'Exception' with message 'This library must be installed via composer or by downloading the full package. See the instructions at https://github.com/google/google-api-php-client#installation.' in /var/www/html/gauth/application/libraries

Google API: Authenticate request with OAuth but without user consent window then request Google data for particular username or user ID

六月ゝ 毕业季﹏ 提交于 2019-12-08 08:36:47
问题 While reading this Implementing OAuth 2.0 Authentication (server side) I noticed the process is probably meant for a scenario where one is creating an app that let's users sign in with their Google credentials and subsequently show their Google+ posts, Youtube videos, etc. What I need is the ability to fetch Google data based on google user's username or user ID. I do have client_id, client_secret, etc. from Google - and I'm willing to send them along my requests. Step 1 seems OK. Make a

Google drive PHP API: unable to insert files or folders into subfolders

邮差的信 提交于 2019-12-08 07:14:26
问题 I have been struggling for quite a while now; via Google drives PHP API, I am able to create a sub folder or add files to an existing folder, But trying to place another sub folder or a file within a sub folder, seems impossible. After research, I came across the Children function, but don't understand how to apply it, even after checking the Google documentation on this page: [https://developers.google.com/drive/v2/reference/children/insert][1] The code I am using to add an image to a folder

adding an event to google calendar using php

主宰稳场 提交于 2019-12-08 06:11:21
问题 I'm working on a client web app where users can book drives with date, time, location...etc the client required that every booking is added as an event on his google calendar I created an API key and downloaded the PHP API client: https://github.com/google/google-api-php-client But when I try to add an event I get a "Login Required" Error How can I add an event directly without having to use OAuth and consent screen because the function will be executed automatically in the backend, I have

How to upload presentation file into Google Slides using PHP?

余生长醉 提交于 2019-12-08 05:50:55
问题 How can I upload presentation file (ppt, pptx, pdf) to Google Slides service using PHP. I didn't find an example in these links: https://developers.google.com/slides/quickstart/php https://developers.google.com/api-client-library/php/support My code: $service = new Google_Service_Drive($client); $fileMetadata = new Google_Service_Drive_DriveFile([ 'name' => 'My Presentation', 'mimeType' => 'application/vnd.google-apps.presentation', // 'mimeType' => 'application/vnd.google-apps.document', ]);

How can I have my server add events to a google calendar using the client library for PHP?

女生的网名这么多〃 提交于 2019-12-08 05:40:33
问题 I have very little experience working with the google api and I'm finding it difficult to find relevant information on certain subjects. What I'm trying to do is create a calendar that requires no log in information from the user. I want my server to add events to the calendar based off of information in a database. I have gone into my google calendars, created a new one, and worked up some code to add events to the calendar. Then I use the iframe code that google provides to embed the

google contacts api not adding name and address in google contact

*爱你&永不变心* 提交于 2019-12-08 05:32:01
问题 we are sending xml through curl in cakephp, but only email and phone numbers are adding in google contacts , other fields are blank,can we get proper xml to add all fields in google contacts through api our xml code: $xml = <<<'EOF' <atom:entry xmlns:atom='http://www.w3.org/2005/Atom' xmlns:gd='http://schemas.google.com/g/2005'> <atom:category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/contact/2008#contact'/> <title type="text">TITLE</title> <gd:name> <gd

Google API Offline Access To User Data

我与影子孤独终老i 提交于 2019-12-08 05:13:24
问题 I'm working on an application that requires permission to access users Google Calendars. I'm using the PHP client and I'm able to get offline access to these calendars. My issue is as follows: once I have permission, how do I access the calendars for a specific users at a later date? How do I create a client object for a specific user (that has already given me permission to access their calendars) when I need it? I've managed to extract a client ID using the Google_Service_Oauth2::USERINFO

How to Connect to a Google Public Calendar

空扰寡人 提交于 2019-12-08 04:12:54
问题 I am trying to build a script to retrieve all my events using the new Google Calendar API v3 since Google deprecated v1 and v2 on 11/17/2014. I am receiving this error: Fatal error: Uncaught exception 'Google_Service_Exception' with message 'Error calling GET https://www.googleapis.com/calendar/v3/calendars/MY-PUBLIC-CALENDAR/events: (403) Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.' in /usr/local/lib/php/google-api-php-client/src/Google/Http/REST.php:76 Stack