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

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

Related

Use Tweepy to extract Twitter follower information (API incompatibility issues)?

I was following this tutorial, https://towardsdatascience.com/how-to-download-twitter-friends-or-followers-for-free-b9d5ac23812, which was written in 2021. It should've worked fine, however, they have to 'fix' the things that just work.
Specifically, running this line
for fid in Cursor(api.followers_ids, screen_name=screen_name, count=5000).items():
ids.append(fid)
gives the error:
"tweepy.error.TweepError: [{'message': 'You currently have Essential access which includes access to Twitter API v2 endpoints only. If you need access to this endpoint, you’ll need to apply for Elevated access via the Developer Portal. You can learn more here: https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api#v2-access-leve', 'code': 453}]"
I could have pulled the data in five minutes. Now debugging this already cost one hour+ because they just break the things that work. Is there anyway to make this old code snippet work? The application to use API 1.1 takes weeks, and I don't have time to watch their bad documents of how to migrate from API 1.1 to 2.0 and then the documents of migrating from Tweepy 3.9.0 to 4.0.0. Five minutes' task would just become half a day. Thanks in advance for any help.
First of all, have you at least tried to apply for the Elevated access?
It can take some time, it's true, but it can also be instantaneous.
The other solution would be to use the Twitter API V2.
You don't need any tutorial, just read the documentation:
Here for the authentication ;
Here for the retrieval of the followers ;
Here for the pagination.
And you should get something like that:
import tweepy
client = tweepy.Client("Bearer Token here")
paginator = tweepy.Paginator(
client.get_users_followers,
id=..., # ID only, no screename
max_results=1000
).flatten()
for follower in paginator:
print(follower.id)
Finally, even if I understand your frustration (and developing Twitter applications can be very frustrating), I think that you should try to keep it out your SO questions. Good luck!

Google My Business API - How to get reviews list from a location in 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!

Google YOLO stop working : The client origin is not permitted to use this API

I assume it has something to do with this:
For me Google one Tap stopped working on all my sites that previously worked. I added API HTTP refer to restriction in console.developer.com, but I still get a warning message "The client origin is not permitted to use this API." any thoughts? If you go to the page https://www.wego.com/ you can see that Google one tap still works...
https://news.ycombinator.com/item?id=17044518#17045809
but Google YOLO stop working for everyone. I use it like many people for login and it just stop work.
My domain are obviously added on console.developers.google.com
Any ETA for fix this? Some information would be great for people who rely on it.
Google YOLO is not disabled. It is open to a small list of Google Partners.
The reason you were able to access it earlier was because it was open for a short period of time but the whitelist is now readded/enabled.
Reference:
https://twitter.com/sirdarckcat/status/994867137704587264
Google YOLO was put on whitelist after a client-side exploit became clear to google.
People could cover the login button of the prompt with something like a cookie consent (which we all know people automatically accept).
Therefor people could easily steal their gmail or other details due to this google decided to put it on whitelist and review the sites that are using this technology in order to ensure that they are using it as they should.
Google retroactively labeled One-Tap as a "closed beta".
https://developers.google.com/identity/one-tap/web
The beta test program for this API is currently closed. We are improving the API's cross-browser functionality and will provide updates here in the coming months.
The link for the entire project is currently 404, but the beta statement is visible on the wayback machine.

gspread/OAuth2: authenticated default gmail account (used early in ClientLogin)

I have been using gspread (authenticated via ClientLogin) for a last year. Now I would like to use OAuth2. I've followed tutorial from gspread site: http://gspread.readthedocs.org/en/latest/oauth2.html
The problem is that this method creates new "Email address" (in console.developers.google) which doesn't have an access to spreadsheets - all spreadsheets should be shared again. This is really difficult if you have 1000+ spreadsheets.
The question is: how to authenticated with OAuth2 my default gmail account (that I've been using to access via ClientLogin)?
Thank you!
EDIT:
I've followed this tutorial: http://www.indjango.com/access-google-sheets-in-python-using-gspread/
But I modified code from point 1.2: http://www.indjango.com/access-google-sheets-in-python-using-gspread/#comment-2026863410
Result - some spreadsheets are available, some not and I have no idea why (same entries in access list)...
It seems that code from EDIT works. Thus, this is working solution:
I've followed this tutorial: http://www.indjango.com/access-google-sheets-in-python-using-gspread/
But I modified code from point 1.2: http://www.indjango.com/access-google-sheets-in-python-using-gspread/#comment-2026863410
The only problem is that Google Sheets API returns only 500 results (thus, if using gspread when you have more spreadsheets that are not among results -> gspread raises SpreadsheetNotFound).

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 :)

Resources