I have been using the Google Calendar API with PHP to create events and I got the following error after trying to create an event:
Error calling POST
https://www.googleapis.com/calendar/v3/calendars/mycalendar_nrfo11fd4vi2a83ir85b8b2rp0%40group.calendar.google.com/events:
(409) The requested identifier already exists.
I then searched in Google Calendar to see if the event exists and it showed this result:
I can't seem to do anything with this event, I can't find any option to delete it. Anyone know how I can get rid of this?
Go to calendar.google.com and sign-in with your account. Upon right-clicking the event, there should be an option to either DELETE or REMOVE the event.
Related
I am using Google Calendar APIv3 and were successful at capturing error while trying to delete an item that were already deleted in Google Calendar. I am using the same try-catch method for the two processes, but when I'm trying to update an event that was also deleted in Calendar side, I receive no error. I tried to find answer from the poorly documented Google Devs site, but without result. I think at least one of the below should throw a Google_Service_Exception in case of an eventID referring to a deleted event;
$event = $service->events->get($calendarID, $eventID);
(...)
$event = $service->events->update($calendarID, $eventID, $event);
So my question is whether the above PHP code should return an error object if the event with the parameter eventID was already deleted?
It seems that an event that is deleted from Google Calendar does not get deleted in the traditional sense; the "status" attribute of the event changes to "cancelled", but this does not always result in exception while getting or updating an event, only when trying to delete it. See status property at link.
So I am trying to figure out if I can create a simple custom PHP script that takes data from a google hangout link and displays back if it is in session.
I am pretty new to Google APi's. My end goal is to create a button on a website that appears whenever someone has joined into a certain designated HANGOUT link.
Do you think this is possible? Any advice would be highly appreciated.
Here was I was thinking:
$stuff = strip_tags(file_get_contents("https://hangouts.google.com/hangouts/_/4im2yhs5kry4vjhlu4yop25tsea"));
$eStrings = explode(' ', $stuff);
I would then retrieve the data from the code and see if it is live or not. If at top of the screen it reads: "You are the only one here" then it is automatically assumed that the session has not begun.
Problem=> You get directed to the google login screen because you need user access.
If anyone has ideas please advise.
While there is a PHP API SDK for Google in beta, it doesn't appear to support Hangouts at all. Google does however expose a client-side JavaScript interface for Hangouts that you should be able to emit and use from your PHP server-side code.
Using the JS interface, you could use the gapi.hangout.onParticipantsChanged event notification for a given Hangout to know when someone has joined.
Then leverage the gapi.hangouts.getParticipants() function to pull a list of who's in the hangout and determine if your button should show for the current user.
I've been Googling for an answer for several days now, but most of the solution to similar questions seem to use the deprecated REST-API.
I'm trying to create an event on behalf of a group where I'm the owner, using the Facebook Graph API in PHP. I can publish an event to my own wall and even to a page using a page specific access-token, but since the group doesn't have any access-token I'm using this:
https://graph.facebook.com/{$group_id}/events?" . {$user_access_token};
But something is going wrong and the event gets published only with me as the Owner. My permissions are: "stream_publish, user_groups, create_event, manage_pages"
Any Ideas?
You need to add the undocumented:
page_id={$group_id}
parameter to your post.
(as well as posting to the groups event stream)
I'm new to php and zend framework, I've got this display screen which customer is updating their classes information through Google calendar. Every time when I delete a data eg a 9am yoga class through phpmyadmin data base, the data disappears on the display screen, but I can still see the 9am yoga class on the google calendar.
How are they all connected? Is Zendframe going to update the 9am yoga class back again (which shows not so far)?
Also I've found gdata_process.php, everytime I run this php url through, the data comes back, and it wouldn't let me delete the coming back data again from phpmyadmin, how come?
Any help to clear my head would be appreciated. I can post some code if I'm confusing anyone.
Thanks
S:)
So you have Google Calendar which saves the data in google's database. And not on yours .
So what exactly you want to do is either go and remove it from google calendar ( manually ) as the data is being imported by the script to the database. What ever value you change in your database via phpmyadmin is not going to effect the google's calendar .
Or you can write a script to delete the google calendar value. I have not tried it , so not sure how much scope is there for it .
Hi i am trying to use Realtime updates in facebook application,
My application basically backs up the user's photos, messages and friendlist, i want when a user adds a new friend data on server should also be updated, when a user adds a new album the most recent album should be downloaded automatically to my server
I got this code from github-php , but dont know what next?
Please help if anyone has done with real time updates
you need to query the code after certain interval which you can use AJAX to update the page without refresh.
There is no automatic updates without query the information every time.
You have to subscribe using one module and you specify a callback url during the subscription... you only subscribe once and you get updates for everyone who has authorized your app. The updates come to you via the callback url and its very crappy info that basically tells you that you have to go back and query fb to get the full details.