google-api

Whether to use googleapis or google-cloud library for node js

风格不统一 提交于 2019-12-23 12:33:54
问题 I see there are two available libraries. I am wondering what are the differences? Are they both officially maintained by Google? https://www.npmjs.com/package/googleapis https://www.npmjs.com/package/google-cloud 回答1: Yes both are maintained by Google. googleapis covers all these APIs (drive, calendar, admin sdk, maps, etc) whereas google-cloud covers the cloud platform stuff like bigquery, datastore, cloud storage, bigtable, pub/sub, etc. There appears to be overlap and I don't know which

Google plus API doesn't return to app on login

人盡茶涼 提交于 2019-12-23 12:24:39
问题 Obviously I must be missing something. When I press my Google + button, it opens up safari and prompts for the login. Everything is fine until I complete the login procress. Safari tells me "Cannot open the Page -- Safari cannot open the page because the address is invalid". It never takes me back to my app, but keeps Safari open and goes to google.com. I was thinking this would take care of that, but break points aren't ever going off in this method. Maybe I'm misunderstanding how it works.

Why does Google's Custom Search API say that I'm missing an access token when using the Ruby client?

社会主义新天地 提交于 2019-12-23 12:19:47
问题 I'm trying to use Google's Custom Search API through the Google API Ruby client. I have setup my API key through the Google API console, and have also created my CSE. Based on the documentation, it seems that, as long as I provide an API key (which I am doing), I shouldn't need an OAuth2 authentication token to call the list method. However, when I try to execute the code below, I get the following error: ArgumentError: Missing access token. What am I missing? Here's my code: # create client

How do you set a Calendar ID when inserting in Google API?

感情迁移 提交于 2019-12-23 11:54:06
问题 When using the test API in Google's documentation for calendar.calendars.insert I always get back Invalid resource id value. as a response when setting the request like this { "summary": "Events", "description": "This is where you will keep your events", "id": "test.events" } The documentation says that the id can be any string as long as it doesn't have two consecutive dots and it is longer than 0 and shorter than 101. What am I doing wrong? I would like to be able to set the id so I don't

How do you set a Calendar ID when inserting in Google API?

你说的曾经没有我的故事 提交于 2019-12-23 11:54:06
问题 When using the test API in Google's documentation for calendar.calendars.insert I always get back Invalid resource id value. as a response when setting the request like this { "summary": "Events", "description": "This is where you will keep your events", "id": "test.events" } The documentation says that the id can be any string as long as it doesn't have two consecutive dots and it is longer than 0 and shorter than 101. What am I doing wrong? I would like to be able to set the id so I don't

Google books API and the neccesity of an API key

冷暖自知 提交于 2019-12-23 11:23:50
问题 So Google claims that in order to use their Google Books Api, you have to register and get an API key. But you can make a request without an api key. e.g.: https://www.googleapis.com/books/v1/volumes?q=isbn:9780553819229 Why would I register if I can make requests without a key? I don't get it. 回答1: Along with the Terms of Use mentioned by Will, the biggest reason is that when you use an API key, the API request isn't throttled as much. You'll get the following error much quicker without

google api javascript get logged in user's email

拟墨画扇 提交于 2019-12-23 10:57:16
问题 There are many resources and stack overflow questions that are similar but not exactly the same as what I will ask. I will rehash some of the solutions here and explain them. I have a user that is already logged into Google. By logged in I mean manually logged in and the cookie is present. Not logged in by my application. I just need to get the email address. There are 3 ways to do this that I have seen but neither works for me. Way #1: auth2 = gapi.auth2.getAuthInstance(); if (auth2

GoogleCalendarAPI accept/decline event

倾然丶 夕夏残阳落幕 提交于 2019-12-23 10:51:40
问题 I am working on GoogleCalendar API and using node.js as a platform to build my application. I am able to create events using authentication procedure and creating the calendar event using the access token generated while authenticating. My question is that suppose if we have any attendee in the event and I want to accept/decline the event using the calendar API from the attendee's side, how can we do that? I have tried fetching the calendar event of the attendee and matching it with the

Accessing Gmail emails through google app engine

廉价感情. 提交于 2019-12-23 10:09:01
问题 How to get the e-mail contents by getting the user's login details in google app engine? 回答1: Try taking a look at the GMail API. You'll probably want to use OAuth. https://developers.google.com/gmail/ 回答2: This is exactly what I'm doing in my current project. Google App Engine Blog introduced a company named "Context.IO" and they provide very easy API to access GMail. I've implemented it in my project successfully. Links GAE Blog Demo (You can look for a contact, and get all its emails...)

“401 Unauthorized” when trying to watch changes on Google Drive with Java API Client

拈花ヽ惹草 提交于 2019-12-23 10:02:32
问题 Really stuck here. The code, built from examples provided by Google: public static void main(String[] args) { try { HttpTransport httpTransport = new NetHttpTransport(); JsonFactory jsonFactory = new JacksonFactory(); GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder( httpTransport, jsonFactory, CLIENT_ID, CLIENT_SECRET, Arrays.asList(DriveScopes.DRIVE)) .setAccessType("online") .setApprovalPrompt("auto") .build(); String url = flow.newAuthorizationUrl()