In an iOS application, I'm using the Google Calendar API to retrieve some public calendar events in JSON format by making a GET request to this URL.
https://www.google.com/calendar/feeds/[feed_name]/public/full?alt=json
where [feed_name] is an ID identifying a specific public Google Calendar.
I have around 10 public Google calendars, whose events I need to display together in a list within my app. Currently, it seems like I'll have to make 10 GET requests and concatenate the results to achieve what I want.
Is there an alternative service endpoint to which I can provide a list of public Google Calendar IDs and I can get the concatenated list of events?
It seems to be possible to embed multiple public calendars together by adding multiple 'src' and 'color' parameters to the embed URL. But, how about getting multiple public calendars in JSON format through a web service?
Yahoo pipe :) seems to be the only one I found so far. I've been looking to this now for a few days and couldn't get other solutions :(
Related
Google Calendar has a new event type called "Out of office" that automatically will decline any events it is placed over and others that come in during the scheduled time of the event.
I inspected one of these event objects via the API and briefly checked the Google Calendar API documentation to see if there was a way to create these programmatically. I work on a system that schedules events on people's calendars when they are going to be out of the office as all day events to provide visibility to the rest of the staff. I would like to change these to be true Out of office event types if its possible via the API.
The short answer: It does not work currently (as of 08/2022)
The Google Calendar API currently exposes the eventType property as read-only. It will be discarded when sent in an insert payload.
eventType [string]: Specific type of the event. Read-only.
Possible values are:
"default" - A regular event or not further specified.
"outOfOffice" - An out-of-office event.
As mentioned by #ercliou in the comments, the ticket can be tracked here: issuetracker.google.com/issues/112063903
The only thing that seemingly marks an event as out of office is a private extended property on the event resource:
"extendedProperties": {
"private": {
"everyoneDeclinedDismissed": "-1"
}
}
Looking at https://developers.google.com/calendar/v3/reference/events/insert the attribute extendedProperties.private is writeable so you should be able to set it there.
I have firebase integrated. And currently I have a few hundreds of "first_open" in attribution.
However, currently, they are all (direct).
Is there a way for me to call in my code so that i could differentiate between different ways of first_open?
I'm not sure if you can add parameters to first_open event. But what you can set a custom event for your specific case, and you can also add some parameters to it.
firebaseAnalytics.logEvent(CUSTOM_EVENT) {
param(FirebaseAnalytics.Param.ITEM_ID, id)
param(FirebaseAnalytics.Param.ITEM_NAME, name)
param(CUSTOM_PARAM, text)
}
You can read the docs for more information.
Is it possible to fetch events from calendar, calendar wise?
As in not to fetch all the events altogether, fetch it calendar wise like the public and personal calendar separately and so on. I am using the Google API package. Is there any inbuilt function to do that? If not, then how should I implement it?
Provide the code in Php. Thanks.
The API endpoint you're looking for is Events: list. If you're using the API client library for PHP, there's an excellent, thorough example implementation to be found on the Google Calendars API PHP Quickstart.
That example demonstrates the steps involved:
Create a new Google_Client.
Use the client to create a new Google_Service_Calendar object.
Then $service->events->listEvents($calendarId) will return a collection of Event objects (see "Overview" in API ref).
$calendarId can be the ID of a calendar (find by using the API to get a calendarList) or the string primary to get the authenticated user's default calendar events.
listEvents() accepts an optional second parameter, an array of options that can limit the results by min date, max date, max attendees, etc.
Is there a way to create a new static list in Marketo using the SOAP or REST API? I see I can Add Leads to an Existing List using REST API, but if I want to create a new static list and then add new leads to that static list all through API, is this possible?
I'm pretty sure there's no way to do so. I'm guessing you're trying to "tag" people by putting them in certain lists when things happen? What you can try is have a data field be updated by a trigger campaign that's dynamic. then later search by it?
I'm making some assumptions.
Will the REST API get leads from a Smartlist? I created a Smartlist and it has one lead. I sent in this API call:
https://.........../rest/v1/list/{DeanReadyToMove}/leads.json?access_token=..............
and got zero leads back. 'DeanReadyToMove' is the list name and the API call seems to talk about reading by list ID but I can't figure out where to get the list ID from if in fact the list name is the wrong thing. Also tried taking the braces out of the API call but no difference.
It is not currently possible to query leads from a smart list in Marketo. You can query leads from a static list.
The latest Bulk Download API will let you input a Smart List or a Static List, and retrieve all the leads included in either type of list.
Here is the documentation for reference:
http://developers.marketo.com/rest-api/bulk-extract/bulk-lead-extract/