oauth2-playground

Google Drive API - OAuth2.0: How to Automate Authentication Process? Doubts and Questions

荒凉一梦 提交于 2019-12-06 13:51:59
问题 I'm trying to integrate Google APIs inside a project (Thesis project) and I have some doubts and questions. So, here it is the scenario: I wrote a back-end application in Java that runs solely from a command-line and has absolutely no interaction with a user. Its goal is to allow communication and interaction between sensors and actuators. Everything works great. Now I'd like to integrate something in order to let the sensors backup data both with a certain periodicity and due to some

How to run Google App Script function from Google OAuth 2.0 Playground | The caller does not have permission

谁说胖子不能爱 提交于 2019-12-05 20:03:44
I have created a new script which creates "Google Form" on my google account. Following is the sample code: function myFunction() { var form = FormApp.create('New Form'); var item = form.addCheckboxItem(); item.setTitle('What condiments would you like on your hot dog?'); item.setChoices([ item.createChoice('Ketchup'), item.createChoice('Mustard'), item.createChoice('Relish') ]); form.addMultipleChoiceItem() .setTitle('Do you prefer cats or dogs?') .setChoiceValues(['Cats','Dogs']) .showOtherOption(true); form.addPageBreakItem() .setTitle('Getting to know you'); form.addDateItem() .setTitle(

Get filtered data from Google Sheets API

大兔子大兔子 提交于 2019-12-04 22:29:13
I am using nodeJS for fetching the data from google sheet and the URL looks like : var url = `https://sheets.googleapis.com/v4/spreadsheets/${sheet_key}/values/Sheet2!A1:J20?key=${google_API_key}` From this, I am only getting the data between A1 to J20 So now I have two questions : How do I get all the rows from the sheet or last 10. How do I apply a structured query filter like: where name == "Himanshu" Edited : For question 2: what I have done is using Query Language Reference (Version 0.7) / structured queries, which is referenced by @Tanaike. This is how my URL looks like now and its

Why do only OAuth 2.0 Playground access tokens work for Google API?

五迷三道 提交于 2019-12-04 05:51:23
问题 I have created OAuth 2.0 Playground access tokens using the following info: Select & Authorize APIs: https://www.googleapis.com/auth/consumersurveys https://www.googleapis.com/auth/userinfo.email GET https://www.googleapis.com/consumersurveys/v2/surveys This works (for me it returns a list of surveys I had created previously). However, when I create access tokens using Postman OR retrieve them from AspNetUserClaims table those access tokens don't work. Example #1: I get an access token in

Google Calendar API calendar id and event id

馋奶兔 提交于 2019-12-03 06:06:53
I am learning on how to access google calendar API for creating and accessing events. I am trying to understand API using OAuth 2.0 Playground. I am struggling on what to set for calendarid and eventid https://www.googleapis.com/calendar/v3/calendars/{calendarId}/events/{eventId} Can any one guide me. Regards, Sureshkumar Menon calendarId is the email address of your calendar. If you're just using your own, then use the string "primary". eventId is the ID of the event that you want to modify. If you don't have an event, you should either create one with the 'insert' call, which will include an

Why do only OAuth 2.0 Playground access tokens work for Google API?

时间秒杀一切 提交于 2019-12-02 12:38:25
I have created OAuth 2.0 Playground access tokens using the following info: Select & Authorize APIs: https://www.googleapis.com/auth/consumersurveys https://www.googleapis.com/auth/userinfo.email GET https://www.googleapis.com/consumersurveys/v2/surveys This works (for me it returns a list of surveys I had created previously). However, when I create access tokens using Postman OR retrieve them from AspNetUserClaims table those access tokens don't work. Example #1: I get an access token in Postman for Google and add it to the Header (a checkmark appears for Bearer and token). I press Send in

why is google oauth2 playground failing to return data?

别等时光非礼了梦想. 提交于 2019-12-02 01:00:11
问题 I'm learning oauth2 using the google playground, I'm trying this request: https://www.googleapis.com/youtube/v3/activities?part=snippet and receiving this response: { "error": { "code": 403, "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project.", "errors": [ { "domain": "usageLimits", "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project.", "reason": "accessNotConfigured" } ] } } on

why is google oauth2 playground failing to return data?

假装没事ソ 提交于 2019-12-01 20:46:38
I'm learning oauth2 using the google playground, I'm trying this request: https://www.googleapis.com/youtube/v3/activities?part=snippet and receiving this response: { "error": { "code": 403, "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project.", "errors": [ { "domain": "usageLimits", "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project.", "reason": "accessNotConfigured" } ] } } on the authorization tab I requested access to all yoututbe v3 api scopes and I granted access upon

Is there a way to *only* get a user's email address with Google's OAuth2 implementation?

风格不统一 提交于 2019-11-29 12:20:13
问题 I have a "Sign in with Google+" button on my page. When people click on it, I want the only thing they authorize to be "View your email address." I don't want "Know who you are on Google" or "View basic information about your account." I only want their email address. I'm playing on the OAuth 2.0 Playground (https://developers.google.com/oauthplayground/) and see this: Scope: email Requests: Know who you are on Google View your email address Scope: https://www.googleapis.com/auth/userinfo

Does Google OAuth2.0 support an OAuth-flow for a Resource Owner Password Credential Flow?

依然范特西╮ 提交于 2019-11-29 07:31:57
Hello kind people of the internet. Does Google OAuth2.0 support an OAuth-flow for a Resource Owner Password Credential Flow? ...and if so, then: A.) can this type of OAuth flow be tested on the Google OAuth2 Playground? B.) are there any examples of the "Resource Owner Password Credential Flow" with Google OAuth2.0 and the Google APIs? Per an OAuth presentation recently in Oslo NDC 2013, this subject flow apparently skips the authorization end point all together and directly talks to the token end point of the OAuth2 server. The request syntax incantation would supposedly look something like