Implementing Google Reviews for a Travel Company - php

I work for a large online travel company that allows customers to book hotels.
They currently show users Trip Advisor reviews of the property they are currently viewing but are wanting to switch to Google Reviews instead.
I believe the correct API is Google Places but it appears limited to 5 reviews? Is there any sort of widget or way to implement Google Reviews?
Just to note, this is not to show reviews of our business but of a hotel searched for by a user.

1) first of all you need to white list your google my business api for whatever project you are working on in your project as its private api. Google my business api will work on the locations associated with your account so make sure you verified the LOCATIONS from any account you know. Then you can try out the api call you mentioned in OAuthplayground.
2) Follow steps mentioned in below documentation URL to set it up:
https://developers.google.com/my-business/content/prereqs
After the setup and etc you will automatically understand the account id and location id.
i am providing the api that will help you to get the fetch the review
get account details:
https://mybusiness.googleapis.com/v4/accounts?access_token={access_token}
get location Id
https://mybusiness.googleapis.com/v4/accounts/{accountID}/locations?access_token={access_token}
get review
https://mybusiness.googleapis.com/v4/accounts/{accountID}/locations/{location_id}/reviews?access_token={access_token}

Related

Php Google plus domain api delete post and comment

I am working in a project where i am showing Google plus user posts using php Google Plus Api Sdk.
I have a problem.
How to insert post and comments?
How to delete post and comments?
Please Help me.
Thank you
Google+ != Google plus domains
You have tagged your question both Google+ and Google+ domains which are two very different things.
Google+ is a social meda website found here.
Google+ domains is a company controlled website for gSuite customers.
Google+ API for the socalmedia site.
The Google+ api is read only, you can only get data. There is no insert or delete functionality. You can only read what a user has put on Google+
Documentation Activities about.
An activity is a note that a user posts to their stream. Activity methods enable your application to list a collection of activities, get an activity and search through activities.
Google Domains API
With the Google+ Domains API, G Suite customers and ISVs can build custom Google+ functionality and services for people who use Google Apps at college, at work, or at home. Organizations can develop tools to interact with Google+ features such as posts, comments, and circles. These tools let your users share information, reinforce communications, and grow productivity within your organization.
This allows for Select, insert update and delete of posts to the domains page.

Proper Method for Google Calendar with PHP

I am working on a website for my organization which will allow users of the website to create/modify/etc room reservations for a number of spaces in our building.
Each room has a Google Calendar which links to several monitors around the building to display what rooms are [un]available. So, my goal was to utilize these calendars by having the website I am creating edit these google calendars. The problem I am having however is that from all the documentation I have been able to find, it looks like you have to prompt each user for Google Log-In. This is what I am trying to avoid. I want individuals to be able to log-in to my website, and then on the backend my website provides the authentication to Google so that they can add/edit/remove events from the aforementioned GCals based on permissions on set on their account.
Can anyone help direct me to the proper documentation? I've found a couple of things through some intensive Google-ing of my own, but I've become extremely confused about what method I should be using.
Any assistance in getting things rolling is appreciated!
If I understand it correctly, the concept that you want is to create a website that writes into your own calendar and not on the users calendar. Exactly what this 3 part tutorial of Sample Web Page for Booking gives:
Part 1: Setting up Google Calendar
Part 2: OAuth2 and Configuring Your ‘Application’ With Google
Part 3: A Sample Web Page For Bookings
This tutorial worked for many like what has been done in this SO post - How do I connect to the Google Calendar API without the oAuth authentication?.

Login using google account and showing purchased movie from playstore

I am very new to Google API implementation. Need help regarding this.
My Requirement -
Showing purchased movie from play store in a single web page (php page) using google account
I have client id, secret key etc.
Let me know how to do it.
Firstly I need to login using gmail id. Then to show movie from it.
I have downloaded a google-auth-api from github. the example are not working properly
The Google Play Store does not appear to expose any API to determine what movies a user has purchased. The only purchases APIs I was able to find were specific to Android, and only work on in-app purchases for the current application.

Google API to get user review

Is there any API from google which can help to collect user reviews?
Like review for mexican food in Newyork city.
I checked google API list but could not get it.
It's in the Google Places API.
reviews[] a JSON array of up to five reviews. If a language parameter
was specified in the Place Details request, the Places Service will
bias the results to prefer reviews written in that language. Each
review consists of several components:

google seller ratings - Sending content from multiple clients

I'm working on a freemium ratings and review plugin which clients will sign up to use. The idea is that the client (lets refer to them as Supplier A) will sign up and integrate their e-commerce site with our API. When an order is created SupplierA's system will send our API the details and we will store them, a few days later we will request by email the customer write a review of the company and of the product. We store SupplierA's reviewss on our server and have several methods for SupplierA to retrieve them.
How do we integrate our product with google seller ratings, to allow us send SupplierA's product or company reviews and ratings to google, these reviews will then need to show on the clients Google Seller Ratings account and in the google search results for SupplierA.
Idealy we're looking at sending product and company reviews to google on behalf of our clients, overall making it easier for them. Where do I look for the correct API calls, any examples of similar uses, code repositories, How can I work with multiple client accounts?.
You need to have an agreement with Google to send them data for Seller Ratings, we've been trying to get this with Google for about 2 years with little luck as it's a guarded secret. The moment I learn more I'll update the answer, I know someone who has been able to get approved but he wasn't able to share much with me.

Categories