Esi Cal
Esi Cal

Reputation: 11

Zend Gdata not working with google calendar API

My company is using zend gdata 1.11.7, relatively old, but they havent had the ability to move to newer things yet. We have a program that adds events to a google calendar based on the forms submitted by the user.

This morning, we now get the error below:

Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with message 'Expected response code 200, got 403< HTML>< HEAD>< TITLE>Forbidden< /HEAD>< BODY BGCOLOR="#FFFFFF" TEXT="#000000">< H1>Forbidden< H2>Error 403< /BODY>< /HTML> ' in /homepages/26/d119734641/htdocs/app/ZendGdata-1.11.7/ZendGdata-1.11.7/library/Zend/Gdata/App.php:709

From everything I am reading, this is an authentication issue...but I have a problem, it was built so long ago that we do not have access to the google console for the API, what else could be the problem? Did google stop supporting this way of authenticating that is used in this zend gdata?

Please help as currently I have everything happening manually from our online database to the calendar.

Upvotes: 1

Views: 3694

Answers (3)

Aldwen
Aldwen

Reputation: 338

You can't use Zend anymore to list, add, delete events. You have to use google api v3. Here is an example of class you can use to manage events: Authentification Zend Gdata (403 forbidden)

Upvotes: 0

Seb
Seb

Reputation: 227

https://developers.google.com/api-client-library/php/

seems to be the way to go. Still working on replacing my Zend_GData (Zend V1 project) with this but it seems promissing.

EDIT

I can confirm i was able to migrate all my zend_Gdata to google-api-php-client-master.

I can create event, update event, delete event, i work also with extendedProperties, all is fine. I've just one concern about the OAuth and the refreshToken, i hope that i understood how it work.

/EDIT

Upvotes: 0

MuhuPower
MuhuPower

Reputation: 414

Found this post Zend google Calendar access not working anymore

Seems they discontinued it....

Back in November 2011, we announced the deprecation of the Calendar GData API (v1, v2) when the APIv3 was made available. We’ll now be shutting down these older versions on November 17, 2014.

Upvotes: 1

Related Questions