In two different gsuite for business accounts I am pulling the events info from the calendar api. But in one calendar ,"Organiser name" turns up as 'undefined' but in the other one it works perfectly. Am I missing something in the settings?I do get the organiser email id though in the response.
How do I ensure Organiser name turns up in the response?
Related
I'm using calendar API to pull events of users in an organization that had installed my GSuite app as a service account (it just means that I have access to all the users in the organization).
I noticed some weird behavior - let's say I have an event with 2 participants - a and b (both are users in the company). when I use the calendar API events.list to pull event for a I get this event, and b is listed in the attendee list with responseStatus of 'accepted'.
When I pull the events for the same period of time for user b, I do not get this meeting, nor when I try to pull a specific event using the meeting id (event.get API). I also used showDeleted=True but still didn't get the event back when pulling the events of b (I'm pretty sure if the event would have been deleted then the responseStatus would have been 'decline').
What could be the reason for this behavior? I tried to reproduce it using two emails that I have access to, and I was not successful.
Since those are emails of my client I cannot just come up to them and ask what happened with this meeting.
This is the request I'm making (using python google API client):
from googleapiclient.discovery import build as Build
service = Build("calendar", "v3", credentials=credentials, cache_discovery=False)
service.events().list(calendarId='primary', timeMin=min_time, timeMax=max_time, pageToken=page_token, singleEvents=True).execute()
First I'm building the service using the service account credentials (delegating permissions to the current email), and then making the request to pull the events.
The min_time,max_time are strings like this - 2020-10-19T08:00:00+0000.
The pageToken starts as None but will change if there is a nextPageToken in the response.
This is the request I made to try and get the meeting of the user that appear as an attendee when pulling the event using another user's email & credentials:
service.events().get(calendarId='primary', eventId=<meeting_id>).execute()
But I'm getting 404 event not found response (This API returns deleted events - I've seen it)
I'm pulling all of the events correctly, and only saw this case on small number of the events (less than 5% of the meetings).
Any idea what could cause this?
Thanks!
I am trying to use the Google Analytics Measurement Protocol to record some events happening on my server-side code. I am using the REST API as suggested here but I don't see any events on the Google Analytics dashboard.
When I try to add the event via the Google Analytics Hit Builder, then I am able to see that event in the dashboard.
I don't think any authentication is required while using the REST API and only a correct tracking ID is required which is present. I have confirmed that the POST request is not failing.
I am looking at the Realtime > Events to check whether the events are pushed or not. Is there a place where I can check the historical data to see if the events are present there.
Thanks!
I need to catch from a website, the list of users (IDs from User Explorer) that has been entered each day, and all the report from each one (User Report)
I didn't see anything about it in the current API from Google Analytics. Someone knows how to get it?
I saw some questions but from more than 1 year ago, someone knows if there is now any new?
The only thing that I can do for now, is using the automatic report from Google Analytics via email, and send me a report each day with a list of Client IDs en CSV, but I need the report...
Thank you very much!
Capture the Google Analytics Client ID or user id in a custom dimension and hit timestamp. Then you can recreate the user explorer id report yourself using the Google Analytics Reporting API.
I'm extending a PHP application that allows managers to create events and assign specific users to those events. Before the user is listed as available to be assigned, however, I run a check against the user's calendar to see if they are available.
I've already built this once for Exchange using EWS and making use of FindItem method to retrieve events in a given timeframe for a user's email address, but I'm having trouble finding an equivalent in the Google Calendar API.
Both Events and FreeBusy Calls seem to require the specific user's calendarId, which is fine for retrieving the active authenticated manager's Calendar information, but not for their users, of which only the email address is currently available to my system.
Is there a way to retrieve events or a calendarId for a user based on a valid Google email address? (Or is there a better way to get other user's FreeBusy status that I've completely overlooked in my research?)
The Calendar API is a REST API that can be accessed through explicit HTTP calls or via the Google Client Libraries. However, please note that all requests to the Google Calendar API must be authorized by an authenticated user.
User's calendar list can be obtained through HTTP request:
GET https://www.googleapis.com/calendar/v3/users/me/calendarList/calendarId
Code examples for supported programming languages can be found in CalendarList: get.
I am just trying the google Calendar API explorer and I am sure I have the right calendarId and I am sure the ruleId is my username that has access, but I always get the "Invalid Resource Id", and since I am just playing with the explorer I can't even add my own resource Id as many suggestions.
I posted the explorer below:
https://developers.google.com/apis-explorer/#s/calendar/v3/calendar.acl.get
The id is not just the calendar email (it always contains a prefix of the user kind). Try doing a list of acls first:
https://developers.google.com/apis-explorer/#s/calendar/v3/calendar.acl.list?calendarId=primary&_h=1&