google calendar api v2 for php - php

Does anyone have an API library for google calendar API, version 2? - http://code.google.com/apis/calendar/data/2.0/developers_guide_protocol.html
There is a zend library here: http://framework.zend.com/manual/en/zend.gdata.calendar.html but it is based on version 1 of the api.
A simple google search has not yielded any results: http://www.google.com.au/search?q=calendar+api+2+php&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
Thanks

Version 2.0 of the API is a lot more restricted in the amount of languages available and PHP is not one of them. You can use version 1 which still works perfectly well, or you can switch to one of the languages where v2 is available, like python.

Related

PHP: Upgrade Google drive API from V1 to V2 or newer

I am using Google API client 2.0 and want to upgrade Google drive API from V1 to V2 to newer. I not found any straight forward way to upgrade version. Only the change log from google developer site found. Please tell me upgrade process guideline or step by step process.
Thanks in advance.
I am not sure i understand your question. Are you using the V2 of the Google drive api and now you want to upgrade to Google Drive V3? There are a lot of changes your going to have to make I don't think there are any guides on how to do it. Assuming you are using the Google PHP client library your best option will be to download the library for v3 and start fixing your errors one at a time. Like i said there are a number of changes in the library mainly title vs name. That and the library doesn't by default return all the fields your going to have to start using the field parameter.
When you download the library with composer you will be downloading the latest code for use with the Drive API v3. The Authencation code you have been using probably hasnt changed. All of the methods you use in drive probably have. Drive.php
Again there is no upgrade function for this its a completely different API. There is no way to upgrade it. You download the new class using composer and change your code as needed

How to use graph api v2.0 with PHP SDK anymore

I have an PHP script with fql_query and for some days it's giving following error :
rest api is deprecated for versions v2.1 and higher
So, I want to use Graph SDK v2.0 But i don't know how to use it. I read somewhere that we need to use V2.0 somewhere on script to do that.
Can anyone please help me solve the issue. It'll be much appreciated. Thanks.
I guess you're using the endpoint https://api.facebook.com/, instead of using https://graph.facebook.com/fql?q={your_fql_query}&access_token={access_token} as outlined at
https://developers.facebook.com/docs/technical-guides/fql/#example
If your app is a Graph API v2.1 app, you won't be able to use FQl anymore. If it's a Graph API v2.0 app, you'll be able to use FQL until April 30th 2016.
The simplest way is, as opposed to asking ('/me') make a request for ('/v2.0/me') by specifying the version number before the call.
See "making versioned requests" on this page : https://developers.facebook.com/docs/apps/versions and https://developers.facebook.com/docs/graph-api/quickstart/v2.1#versions
But you also need to note that if you App was created AFTER 2.1 was released, then you can't go backwards and use 2.0; you can only use 2.0 if you app was created before 2.1 was released; and then you only have 2 years to update it to be 2.1 compliant.

Codeigniter and Google App Engine

I've made my entire site using the Codeigniter framework, and it is working well without any hassles (Note I'm using MySQL in the website).
I've been told now to try and get it on to the Google servers as they are excellent for scalability. I just have one huge problem, is there any way or step by step tutorial that helps me do this as I've read up on Quercus which allows for the php to run but I haven't found something explaining how to use the Codeigniter framework with the Quercus.
Please any help or push in the right direction would be appreciated!
We announced Native PHP support for Google App Engine at I/O.
https://developers.google.com/appengine/docs/php/
After Google announced native PHP support I decided to deploy CodeIgniter on Google App Engine. It works natively, tough certain extensions to the core must be done in order to use PHP Runtime API.
I've started writing a series of articles you might want to check out which document and clarify the process of deploying CodeIgniter natively.
http://blog.programming4design.com/codeigniter-on-google-appengine-for-php/
PHP is being added natively to App Engine, maybe this year, but I'm not sure when. The App Engine Team announced this on the parntership event at Paris last week.
CodeIgniter works fine on Google App Engine's PHP.
Working Demo at : http://ci-on-gae.sasidhar.com/
Source files for the entire above demo site are in Github at : https://github.com/sasidhar/codeigniter-gae-app

Youtube PHP library with OAuth 2

According to the Google's documentation, the AuthSub method is officially deprecated in place of OAuth 2.0. The problem is, their PHP library v2 is built using Zend Gdata, which from what I can tell, doesn't work well with OAuth. On the other hand, v3 of their API is not only still in development, but it looks like it doesn't support YouTube calls quite yet.
So my question is, what's the best way to make API calls using v2 of the library after authenticating using OAuth2? Am I best just using AuthSub until a new library comes out?
You can actually call the Youtube api with the the v3 php library. You can find code samples here.

Google Analytics API with Zend

I am looking for easiest way to receive data from Google Analytics and I found this library, but it seems not working after changes in API.
http://healthycod.in/2011/07/google-analytics-and-zend-framework/
I am looking for any solution that will work with current google api.
This component is being added to Zend Framework in version 1.12, where it has been updated to work with the current version of the API. 1.12 isn't out yet but there is a release candidate available if you can't wait: http://framework.zend.com/download/latest (scroll down to the bottom)

Categories