Where is doc of available scopes of Google OAuth 2.0 API? - google-api

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.

Related

Update (REST API) a Google document with api key

I can't figure out what public data means in Google Docs API guides.
Reading the Google Docs API guide authorizing section, we find that for public data the OAuth 2.0 is not necessary, then I tried using patchupdate to update a document which is shared to edit for anyone with the link, and I could not get it to work because the API returns an authentication error.
So the questions are, what is API key for and what does Google mean with public data?
I understand that you refer to the «If the request doesn't require authorization (such as a request for public data), then the application must provide either the API key or an OAuth 2.0 token, or both» part. It says that you should use either an API key or an OAuth 2.0 token (or both), whatever is more convenient for your project. In this guide you can learn more about how to communicate with Google APIs using OAuth 2.0. Meanwhile in this documentation you can see the approach used with API keys. Please don't hesitate to ask me to clarify myself.

Oauth 2.0 | Google Documentation for operations

I am not able to find google documentation where all valid possible operation url per scope are mentioned?
I am consuming google API, using oauth 2.0 by Httpclient ie without using google api client jar or dependency.
To fetch Users profile I set emailId profile in scope and made a get request to https://www.googleapis.com/oauth2/v1/userinfo?access_token=XXX using HttpClient,this is working.
There is a page where all scopes are mentioned but unable to find list of possible operations for particular scope.Please help me into this.Thanks!
On the page describing scopes, if you click on the title of a scope section, say the Calendar API, you are brought to that API's home page. From here you can got to the guides tab and follow the quick start for the language of your choice (which Google encourages since their client libraries tend to do a lot of the work for you), or go to the reference tab and view the available endpoints. From here you can send your access token as described here
As far as which scope applies to which endpoint, I assume view and read only scopes will probably only work for GET requests, while other manage scopes will probably encapsulate the other endpoints. Apart from that assumption, I don't know if Google has the scope exactly lined up with the endpoints they are valid for.

Deprecation of Google API

Can you please let me know if the following can still be used? after 4/20:
com.google.gdata.data.appsforyourdomain.generic.GenericEntry;
com.google.gdata.data.spreadsheet.SpreadsheetEntry;
com.google.gdata.data.spreadsheet.SpreadsheetFeed;
com.google.gdata.data.spreadsheet.WorksheetEntry;
com.google.gdata.data.spreadsheet.WorksheetFeed;
com.google.gdata.data.contacts.ContactEntry;
com.google.gdata.data.contacts.ContactFeed;
com.google.gdata.data.contacts.Hobby
I believe these will work after 4/20. Can you please confirm if this needs to be replaced? I checked my jar for contacts and it is using v3.
Spread sheets API v3 and contacts API v3 are available and are not deprecated which are still on gdata. check this link1 and link2.So, you can use the above libraries but you should use Oauth2 as Oauth 1 is deprecated and is not supported by Google after May 5,2015.

Is there any api available that can get contacts from my gmail account?

There are many api's available e.g. for post the message, list profile, get threads but I need the api to get the contacts from my account.
Google Contacts API version 3.0 can do that.
Documentation Link: https://developers.google.com/google-apps/contacts/v3/
What language do you use ?

How to programmatically add people to a Google+ circle using cURL?

If you own a page that has a circle, and you'd like to add people to that circle programmatically, how would you do so? Would it be something similar to:
curl `ruby file_that_outputs_new_people_to_add.rb` 'https://plus.google.com/{pageid}'
What other attributes would you need to include and where in this process would you add oAuth details?
You can't... yet. From the Google+ API documentation:
Note: The Google+ API currently provides read-only access to public data. All API calls require either an OAuth 2.0 token or an API key.
Read-write access with three-legged OAuth is planned, but until there's a documented API for that functionality, there really is no way to do what you're asking.
They offer it now in Google+ Domains API under Circles and addPeople. https://developers.google.com/+/domains/api/circles/addPeople
I recommend looking at Google's own "Google API Client". They have a method which discovers their own API: API Discovery

Resources