Google Calendar API - Recurring Events - GDATA - iPhone - iphone

I am trying to build an app which shows events from a google calendar. I am using GData. Does any of you know how can I modify GDataQueryCalendar or other things such that google calendar doesn't show recently edited recurring event twice.
For Eg: If I have a recurring event called 'Breakfast' which is repeated daily at 7am. When I check the feed it shows the event only once. But, if I go back and edit the event's title to 'Breakfast1' only for today. And then when I check the feed it shows two events. One is "Breakfast" at 7am and the other one is "Breakfast1" at the same time 7am. Starttime on both the events are same.
How can I get the event only for that day (Breakfast1 as in eg)?

Finally got it working.. I am checking if a GDataEntryCalendarEvent event has an original event with it ([event originalEvent]). If an event has original event then we need to use this event instead of the duplicate event.

Related

Updating a timestamp if a previous submission is older than a newer submission

So Im working on a gaming community and have a "Roll Call" form they fill out each day they play with us so we can track if they are active. This form comes with name, the unit they are in and the timestamp when it was submitted (only important pieces). It is all sent to a google sheets page and has a google forms page linked.
What I am trying to do is to have it so in their roster, the most recent roll call will update a cell next to their name with the date submitted, while also changing the colour of the cell to indicate if it fits within a certain time period.
Currently, I have tried =IF('Roll Call'!A3:A<TODAY(-3)AND('Roll Call'!B3:B=D6),"ACTIVE","Innactive")
A3:A is all timestamps logged, B3:B is the name submitted and D6 on the sheet is the name of the person. Eventually I want it to be that if submitted within 3 days they are active, if submitted within 3-6 days its inactive and after 7 days they are "AWOL".
For now, Im not fussed about the changing colours based on activity, I just want it to auto update the last submitted timestamp in Day/Month/Year format based on the name of the person submitted. Anyone able to direct me and help me in any way?
Main Roster Page
Raw data roll call page
try:
=IF(IFNA(FILTER('RAW - ROLL CALL'!A2:A, 'RAW - ROLL CALL'!A2:A<TODAY()-3, 'RAW - ROLL CALL'!B2:B=E6))="",
"ACTIVE", "INNACTIVE")

Graph API shows only past events

I just came back from a three months break of programming.
Before leaving id/events would return any events (past and future) of a facebook page.
Now id/events/?limit=10&since=2018-08-02 returns a empty array or only one event whereas a lot of events are upcoming
Has something changed in the API or it is a setting from the page ?
Only Events for which the requesting User is listed as a Host or Guest
will be returned.
https://developers.facebook.com/docs/graph-api/reference/v3.1/page/events

What is the name of the App Launch event for Facebook Analytics?

I'm trying to implement the new analytics for a Facebook game (using HTML/Javascript and Flash on Canvas, so there is no mobile version), but it seems that the documentation is incomplete. It says that there are 14 predefined events:
"Events are one of 14 predefined events such as 'added to cart' in a
commerce app or 'level achieved' in a game"
Source: https://developers.facebook.com/docs/reference/javascript/FB.AppEvents.LogEvent
"The fourteen pre-defined events are: App Launch, Complete
Registration, Content View, Search, Rating, Tutorial Completed, Add to
Cart, Add to Wishlist, Initiated Checkout, Add Payment Info, Purchase,
Level Achieved, Achievement Unlocked, Spent Credits."
Source: https://developers.facebook.com/docs/app-events/faq
However, on the reference page where all the events should be listed, the list is only 12 items long, and there is no "App launch" event:
https://developers.facebook.com/docs/reference/javascript/FB.AppEvents.LogEvent#events
Now, there are some sample event lists for some games, but they are very basic and they don't include the actual code: https://developers.facebook.com/docs/app-events/best-practices#casual
which recommends to use these events:
App Install
App Launch
Completed Registration
Completed Tutorial
Level Achieved
Achievement Unlocked
(...)
Here is what I have so far:
FB.AppEvents.activateApp()
But is this event the equivalent of App Install or App Launch?
Also, should I send this before the user accepts to share his basic info or after? I'm having so many questions because it's not clear what activateApp() does...
Here is some code for sending some other events that could be useful:
FB.AppEvents.logEvent(FB.AppEvents.EventNames.COMPLETED_REGISTRATION);
FB.AppEvents.logEvent(FB.AppEvents.EventNames.COMPLETED_TUTORIAL);
var params = {};
params[FB.AppEvents.ParameterNames.LEVEL] = '12'; //player level
FB.AppEvents.logEvent(
FB.AppEvents.EventNames.ACHIEVED_LEVEL,
null, // numeric value for this event - in this case, none
params
);
I still have more questions: how can I properly send the game version number (maybe with activateApp?) so I can create segments and cohorts later? Some example codes would be really appreciated!
Thanks in advance!
FB.AppEvents.activateApp() provides install and launch event functionality, which is why those two events are not enumerated as options in https://developers.facebook.com/docs/reference/javascript/FB.AppEvents.LogEvent#events. Activate app doesn't take a parameter. You might want to look at using a custom event to satisfy your use case.

The results of my form are not being automatically emailed - why?

First off - I am new to Google Apps.
I have created a form that I want to be automatically emailed to me upon submission.
I have set up a trigger as follows :
timeDriven --> Time-driven --> Minutes timer --> every minute
I have created two forms and it has collected the data.
But is is NOT being emailed to me.
Any ideas why?
-Jena
When troubleshooting problems with triggers it helps to set the notification frequency to "immediately", to ensure that errors are emailed to you as soon as they happen.

Zend gdata calendar-looking for event created and event edited elements

I'm having a touch time finding the data from the Zend Gdata feed that gives me:
The date that the event was created
The date of the most recent edit to the event
I'm hoping to find these variables in a form similar to how I get the event ID:
pr($event->id->text);
I'm sure it is documents, and if anyone can point me to a chart of all the elements available in the feed, that would be great! Thanks!
Ah-got it:
pr($event->published->text); //when event was first published
pr($event->updated->text); //when event was last updated.
http://code.google.com/apis/gdata/docs/2.0/elements.html