Google calendar event respond on behalf of guest - google-calendar-api

I scheduled an event on my Google Calendar and one of the guests called me asking me to mark them as a "maybe."
Is there a way for me to mark the RSVP on behalf of the guest on my event?
The only thing I found online that can do this is iGoogle and that was phased out in 2015.
Thanks in advance.

You might want to test the Events: insert - attendees[].responseStatus:
The attendee's response status. Possible values are:
"needsAction" - The attendee has not responded to the invitation.
"declined" - The attendee has declined the invitation.
"tentative" - The attendee has tentatively accepted the invitation.
"accepted" - The attendee has accepted the invitation.
I've tested the this and it let my guess have a pre-valued response (accepted) on his behalf. I've used "Try this API" on the same page of the document and checked my calendar if it works.
Hope this helps.

Related

I have unsubscribed to a topic via email in SNS, yet it still says Status: Confirmed. Is this normal?

I have subscribed to an SNS topic via email
And, for sake of testing, clicked the unsubscribe link in the email.
Now I'm left with this:
Where the purple one is a valid email which is still subscribed (I'm happy with that)
But the blue one is the one I just tried to unsubscribe from. I'm not receiving emails anymore, and the ID now says Deleted, but Status still says Confirmed.
Is this strange? Or will it update in time.

Google Calendar API: attendees response status not updating when user respond to invite email

Good day all
I'm busy integrating the calendar API into my C# system and ran into a bit of a headache.
When I create an event, and I add attendees, they get their emails with the invite.
My issue comes, when they accept (or reject) the meeting, their responses are not captured.
In my event their response status always remain: NeedsAction
I have tested this directly via the Calendar API (https://developers.google.com/calendar/api/v3/reference/events/get) and I can get the event, I can see the attendees, yet their responseStatus does not change.
Does anyone have any idea what the problem could be?
Kind regards
I believe I found the answer to the issue.
Basically what it comes down to, the person that accepts the invitation, needs to have a google calendar associated with their account.
What happened was I was sending the invite requests to my work email (that did not have an google account or calendar account associated with it).
I tested it again to my personal gmail, and viola! There it works perfectly.
Here is an image illustrating how the invite would appear in Microsoft Mail. https://i.stack.imgur.com/tKPgN.jpg
If you accept there at the top option, the event would be added to your calendar, and potentially an email might be sent to the creator, but it does not get updated on the creator's google calendar. If you try to accept at the bottom, then you get a google error 400 page. This is what hinted me to what the issue was.

Google chat API - Receive user reaction on bot message

I'm wondering if the Google Chat API can call our endpoint when a user put a reaction (an emoji) on the message
has anyone made this working ?
Thanks
Issue:
You want the bot to be notified when there's a reaction to a message.
This functionality is currently not available, since the only Chat events that may trigger an action are:
ADDED_TO_SPACE: bot is added to a room or DM.
REMOVED_FROM_SPACE: bot is removed from a room or DM.
MESSAGE: a message has been sent to the bot.
Feature request:
This feature has been requested before in Issue Tracker, see:
Allow bots to be notified on emotes
I'd suggest you to star this FR, in order to keep track of it and to help prioritizing it. Also, since this FR has not been getting much traction, I'd consider creating a new one in the Chat API component, explaining the potential usefulness of this functionality.
Reference:
Chat API: Event types

Google Calendar API: User exists as an attendee when the meeting does not exist in his calendar

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!

How to add "subscribe button" in facebook messenger bot?

I need to add a button (subscription ) in my messenger bot through which users can subscribe. and after that bot will automatically send latest post to the users at the specific time.
I was going through documentation but i am unable to find any proper documentation for it.
Can anybody please help regarding that?
Facebook don't provide a mechanism to manage subscriptions. It's up to you as a developer to choose how to implement this - for example using a button with a payload to confirm that the user wants to opt in.
You could perhaps put an Opt Out option in your persistent menu and listen for the relevant payload and unsubscribe the user.
Facebook have published some documentation about this, explaining how they expect subscription messaging to be triggered:
Person sends a message to a business or clicks on a call to action button within Messenger to request subscription messaging
Person requests subscription messaging from a business via a Send to Messenger plugin
Person signs up for SMS alerts
See the full page of documentation at https://developers.facebook.com/docs/messenger-platform/policy-overview#messaging_types for more details on their expectation

Resources