Google My Business API - How to get reviews list from a location in Google My Business API - google-my-business-api

whasup?
I´m developing a widget like "Google Reviews for WP" to a customer of mine, to show on his site the list of google my business reviews of his places.
I´ve read all confuse documentation of Google Cloud and Google my Business API
and found this URI that they say is to be used to get my goals,
GET https://mybusiness.googleapis.com/v4/{parent=accounts/*/locations/*}/reviews or this one
POST https://mybusiness.googleapis.com/v4/accounts/{accountId}/locations:batchGetReviews
but I caný identify where I can find {accountId} or {parent=accounts//locations/}.
I´ve followed all steps to create API Keys, ou OAuth2.0 credentials, but, i´ve got unauthorized response from servers when i try to use that URI on Postman to check if i´ve got the correct JSON answer... by other way, when i got the right URI, I receive 200 status, but unauthorized msg..
May someone, please help me?
I can´t use the WordPress plugins..
Thanks to whom help me...
Sorry by the "cracked english!"
Hugs to all!

Related

Is List Joined Teams API Working

Working with Teams preview API and attempting to get all of the Teams of which the current person is a member. I don't get any authorization errors, but instead get a 400 - Bad Request as a response. Bad Request is a REALLY strange error for a GET request with no parameters, i.e. we're just asking for https://graph.microsoft.com/beta/me/joinedTeams using the access token we just got from Azure AD.
Is this just not working right now? Or is there something maybe missing from the documentation? Or something else?
Update 2/27/18: this has been fixed.
It's an active bug we are tracking.

What exactly is needed to post on Google plus with their API

My question is about Google + Domains API :
From this answer is said : "Currently, there is no publicly available API to post to Google+".
So search for other so many Q&A i see the possibility to POST with Google + Domains API through Google domain account.
So again so many doubts appeared :
1- What is Google Domain account and how set this to propose of POST on Google Plus(Perfil/Page or Communities)?
I learn about OAuth2 and git google respositore php class library.
In some tests(from localhost), i got get authorization and acessToken, but ever with errors like that on the end : Forbidden or Invalid Credentials.
On my searchs the error is becouse i dont try with the Google Domain Acccount.
So i dont see in all google results the way to made that end to end, from create Google Account Domain to POST on Google Plus.
I'm not asking for one complete tutorial, just the way to a i do that.
After 5 days in row, here is my last attempt(or not who knows), but I'm tired and cant see the light on the end of tunnel.
Any tips are welcome.
sorry my english

Why am I receiving a 500 status when trying to connect with ASANA api?

I am using this example: https://github.com/ajimix/asana-api-php-class/blob/master/examples/oauth.php to learn how to use the asana's oauth. I already registered my app on the asana's developers webpage. But, when I get the asana's response with my 'redirect_url'?code=0%XXXXXXX, localhost gives me a 500 status. I don't know why, does anyone know how I can solve it?
I tried using the other examples in there: https://github.com/ajimix/asana-api-php-class/blob/master/examples/, but I wasn't able to make them run either, I always get a 500 status. I think that the problem must be in my server, but I don't how solve it. Maybe changing something on the .htaccess file, but I don't really know what to put in there.
If you're looking to use the Asana API from PHP may I recommend the official first-party client: https://github.com/Asana/php-asana
It also contains examples of how to use with OAuth and is officially supported by us at Asana :-)

How to use Twitter User Streams

I am new in Twitter API. I have a requirement like I have to pull the information of an authenticated twitter user to know the number of followers. I can do this using REST API but I have a problem here. So I have taken the way to use Twitter User Streams.
I am not able to integrate this functionality in the site. I am using twitter console( https://dev.twitter.com/console ). But there I am not able to get any kind of result, it actually hangs/shows gateway timeout. And that's for I am not able to configure that how to write the code for this or how to use this in site. I am not passing any kind of parameters.
So, any body can please help in this would be very grateful( a clean sample code for this or any link where to get the good documentation ). I have already checked with twitter dev documentations.
Thanks in advance :)

How does the Opensocial pageViewer/pageOwner concept work?

My Problem might be simple, but i just dont know how the pageViewer/pageOwner concept work or its better to say i dont know how i can get rid of this system.
I just want to make a Gadget, which handles all Oauth-authentifications for Networks like Twitter, Google+ etc.
So basicly i want to let the User say how many Networks he wants to access and then i make all Oauth-authentifications, i use Liferay and Opensocial for that task but get this error:
OAuth error: UNKNOWN_PROBLEM: Client state belongs to a different person (state owner=G-10180, pageViewer=10196) ==== Original request: GET /m8/feeds/contacts/default/base?alt=json Host: www.google.com X-Shindig-AuthType: oauth X-Forwarded-For: 87.139.78.177 X-shindig-dos: on ====
I guess i have to change something in the shindig.properties file, but this is where i need your help.
-------------------------------UPDATE----------------------------------
I know that the first part of my Authentication works because i get a authentication token, but it is invalid. I assume that the gadget expects a token identical to the token the owner stored.
It would be perfect if you have a little code example for me to identify the viewer as new user if he isnt already a member. Please tell me where i have to put this code in my gadget because the documentation of opensocial costed much lifetime til now, but i cant find an answere to this issue :).
Thanks in advance
Please see my response to your other question: link
You're basically encountering the same problem where the viewer is not the page owner. As I mentioned in your other question, the page viewer must be the page owner for OAuth gadgets (in other words, you must add the OAuth gadget to a page you own).
I'm hoping that a future version of Shindig will fully support adding OAuth gadgets to pages where the viewer != owner, but I'm having difficulty getting feedback from the Shindig community (see here)

Resources