Good afternoon!
I have a task where I need to use google recaptcha v2 exactly v2, unfortunately 3 can't. As I understand google recapcha token is obtained in google interprice. But I have not found any explanation on how to get exactly version 2 of the token.
Can you tell me how to do this?
Related
All is in the title.
I have been looking for a while and couldn't get a clear answer:
Something like Google itself stating in its documentation that it's HIPAA compliant.
If not. Why? What is exactly not compliant and is there a way to resolve it? For example, by blocking the google cookie beyond the user creation page.
Google API v3 docs
I've tried requesting for all 13 "parts" and none of them gave me a flag to say if the returned video is NSFW/R-rated.
Is that unavailable in this api?
Ah found it.
contentDetails.contentRating.ytRating
only valid value is: ytAgeRestricted
apparently that section doesn't come back on non-age-restricted videos, which is why I never saw it.
I'm trying to edit Google Webmasters site settings (set targeting country), but as far as I know v3 doesn't allow to do this, so I'm using v2.
However, I get 401 Unauthorized response for all the Webmaster Tools v2 endpoints. Here are steps I have performed:
Visit Google OAuth 2.0 Playground
Picked Webmaster tools v2
Authorized this API and exchanged authorization code for tokens. (After that I got a message "The access token will expire in 3599 seconds.")
Then hit "List possible operations" and chosen "List sites"
Finally, clicked "Send the request" and got 401
I did it several times I all the time I got the same result.
What is the reason of such behavior? Is Google Webmaster Tools v2 deprecated?
Yes its deprecated. I cant find an official deprecation but all the documentation on V2 just links to v3. Which is probably why I cant find the official deprecation date. Google normally gives you a year to move once they deprecate something.
I found a comment from Google dated 11/20/15 stating
Version 2 is on it's way to be completely deprecated, so I would move
away from it. Whatever still works and breaks, likely will not be
fixed.
Time to move to v3
I read the following two pages on Google:
1) https://developers.google.com/google-apps/documents-list/#getting_a_list_of_documents_and_files
and
2) https://developers.google.com/accounts/docs/OAuth2WebServer
I can go as far as getting an access_token (OAuth2) to be used in a subsequent Google API call (I want to call Google Docs Listing or Google Drive).
I wanted to use curl or something similar and just form my https URL.
- As such in the 1st document states to form a URL as follows:
https: //docs.google.com/feeds/default/private/full
- In the 2nd document, the example states to use something like https: //www.googleapis.com/oauth2/v1/userinfo?access_token=xxxxx
(adding the access token to the call)
Several questions
- Do I call googleapis.com or docs.google.com?
- can I call https: //docs.google.com/feeds/default/private/full?access_token=xxxxx
just add the access token to the call?
thanks
You need some effort to approach a Google API the first time, but then it's easy and elegant:
Manual preparation (One-time action): Sign in to Google, create a project, enable the API in question, create new Cient ID.
Get OAuth code, refresh token and access token (one-time action).
Make the API call (repetitive arbitrary actions).
Here is a detailed explanation of the entire process - Steps to make a Google API call.
A practical sample based on the Google Calendar API with full demo code in a single HTML file can also be reviewed here - Easy and compact access to my Google calendars.
The fastest way to get started is probably the quickstart guide for the Google Drive API, which shows how to setup your environment and write a complete command-line app to upload a file to Drive:
https://developers.google.com/drive/quickstart
Hie you can go through the Google Docs Sample Available Here
it's a command line smaple but this same thing you can implement in android. it works for me. you will find "docs-cmdline-sample" in repo. that will help you.
I am looking for a list of all possible scope values for use with the Google OAuth 2.0 enabled API's, such as:
https://www.googleapis.com/auth/urlshortener
https://www.googleapis.com/auth/tasks
I got lost in the Google API docs and can't find a page containing such information. Where can I find it?
Thanks.
These are available on google oauth playground Here and here. may not be full but most are available there.
You can get a list of all scopes in all Google api's here
It also list which scopes each api needs to execute.