How to get Google Review by display name - google-api

I want to check if someone reviewed my business with its name. The user enters his google name and then I send a get request to check if the review exists. In the documentation it says I can get a review with this url
https://mybusiness.googleapis.com/v4/accounts/account_name/locations/location_name/reviews/review_name
I suppose accont_name and location_name are related to my My Business Account and I can find them somewhere there.
But what exactly is review_name? Is it the name of the Google Account who wrote the review? If yes what happens when two different Google Accounts with the same Name write a Review? Do I get two reviews back then? How can I tell which review is related to which account?

Review name is not the name of Google Account which has written the review, it means the 'reviewId' field that you get from the list of reviews. You have to pass it like below:
https://mybusiness.googleapis.com/v4/accounts/{account_name}/locations/{location_name}/reviews/{reviewId}
It will return to you the single review object.

Related

Can't get a list owned by me in Google Calendar API

Using Google Calendar API v3 to get the calendar list.
However, some users are not able to retrieve their own owner's calendar.
I tried using the Try this API for CalendarList#list to retrieve it,
but it did not return the owner's calendar.
https://developers.google.com/calendar/v3/reference/calendarList/list
However, if the user specifies calendarId as primary in CalendarList#get,
it can be retrieved successfully.
https://developers.google.com/calendar/v3/reference/calendarList/get
Do you have any advice for me?
Can't get a list owned by me in Google Calendar API
Answer: There is no endpoint which will return a full list of all calendars Owned or that the user simply has access to. As this endpoint does not exist the answer to your question is you cant so its working as intended.
In actually you have misunderstood what the calendarlist is. See below
What is calendarList and how does it work?
The calendarList.List is mealy the list that appears on the bottom left hand side of the UI window. There is no guarantee that a user will have anything in this list as it depends upon how the user added the calendar to the list in the first place. The user could also have deleted it form the list. The UI tends to do it automatically but if it was added programmaticlly it will probably not appear it the users calendarlist. So you should not be relying upon the calendarlist to contain a list of all the calendars a user has access to. please see Events and calendars
All users do however have a primary calendar you can always do calender.get on primary and you will get back the primary calendar for that user.

How to get the contact details from DisplayName in Google's People API

This what I am trying to do -
get the birthdays (events) from calender API. This has description of the contact - Person's birthday. I am extracting the name from here.
Next using this DisplayName extracted, I want to fetch the detail of this person from my contacts.
I could not find a suitable method to get/filter based on the name.
Method: people.get can be used to get specific contacts, but it searches based on the resourceName (which is people/<person_id> assigned by the server)
So, is there a way to search/get the contact details of specific person by their Name.
Or Open to suggestions for other approaches. I am trying to make a birthday_wishes sender (if you haven't guessed already :-) )
Thank you in advance.
People.get is only going to return the profile data for the currently authenticated user. Who has authorized your application with the profile scope.
Your not going to be able to search on random people and get their profile data with out them having first authorized your application.
You might be able to go though Connections.list which should return a list of all the contacts the user in question has and see if they have added the persons name.

Is it possible to update a group's auto-reply settings using the API?

I'm using Gmail.Users.Settings.updateVacation to update our customer service rep's vacation responses automatically over the weekend and after-hours, so our customers who e-mail when we're not in the office get an informative message of when they can expect a response.
I am attempting to do the same thing with our Google Groups, but have not been able to find the correct API call. If I use the same method as above, but with a group's e-mail address, I get a "Delegation denied" error (even though I'm an Owner of the group). I suspect this is because a Group is not a User, and is just different.
I've found the Manage Group Settings API, which essentially has just one update method, and you use properties to specify what you want to update on the group. The problem is, there is no auto-reply property name that I can find.
How do I update a Group's auto-reply settings?
Many thanks!
Unfortunately, what you want cannot be achieved through the API.
All the possible methods are present in the Groups Settings API so if you didn't find the expected method there, then it means that is not possible through the API.
What you can do instead is to file a Feature Request here and provide all the necessary details.
Reference
Groups Settings API - Groups Resource.

Google People API Field parameter not working

There seems to be issue with the google people api.
If you go to the following link to test out the api,
https://developers.google.com/apis-explorer/#p/people/v1/people.people.connections.list
try:
GET https://people.googleapis.com/v1/people/me/connections?sortOrder=FIRST_NAME_ASCENDING&fields=connections(emailAddresses%2Cnames)&key={YOUR_API_KEY}
The results does not display the email address of the contact even thou it is specified in the fields.
Thanks,
Derek
You want to supply the requestMask parameter and ask for the email addresses and names explicitly:
This updated query should work:
https://people.googleapis.com/v1/people/me/connections?sortOrder=FIRST_NAME_ASCENDING&requestMask.includeField=person.emailAddresses,person.names&fields=connections(emailAddresses%2Cnames)&key={YOUR_API_KEY}

How to get contact's "FreeBusyStatus" in Microsoft Outlook using REST Api?

See above mentioned image, it gives different status but don't know how to get it.
Check Outlook API.
Thanks in advance :-)
You can use GET https://outlook.office.com/api/v2.0/me/events/{event_id}?$select=ShowAs to retrieve the FreeBusyStatus of attendee(yourself) for a particular meeting, the return type is something like below,
If you want to check the response from a particular attendee, use GET https://outlook.office.com/api/v2.0/me/events/{event_id}?$select=ShowAs,Attendees, and check on the "Response" from the "Status" response.
This enumeration is used for 'Specifies the availability status of an attendee for a meeting.' At present, the Office 365 REST API is not able to retrieve the contacts' meetings status. And you can submit the feedback from here if you want to the Office 365 REST to support this feature.
We are able to add other’s users’ calendar manually, then we could see the status of the appoint/meet of him/her. Here is an figure that show the others calendar for your reference:
If you want to retrieve the free/busy information of EWS is a possible workaround. Please refer to here for more detail. And if you require these information to schedule a meeting, you can try to use the Find meeting times (preview).

Resources