google-api

Google API access from Windows Service

我与影子孤独终老i 提交于 2021-01-28 19:20:38
问题 I implemented Google apps API in a MVC Web app, to access for Admin SDK to add/remove users from Google apps account. In my web app, first the user needs to authenticate with the Google Apps account (OAuth 2.0), then I store the accesstoken and refreshtoken in the database storage. After that,Admin SDK API calls to add/remove user functionality in the web app uses the "offline" mode as it does not pop up the consent screen. But I need to use my database token storage(accesstokens

google drive API search all children file with given folder ID

你说的曾经没有我的故事 提交于 2021-01-28 16:49:25
问题 Here is how my folder is structured in google drive: Picture |----------Date1 |-----Pic1.png |-----Pic2.png |----------Date2 |-----Pic3.png |-----Pic4.png Right now I only have the ID of Picture folder (the parentID folder). Now I want to get Pic1 picture (inside Date1 folder). Is it possible to query only 1 time to get the picture with only the Picture folder's ID or I will have to query multiple times (get the Date1 and Date2 folder ID, then continue querying) ? Here is my code right now

google drive API search all children file with given folder ID

假装没事ソ 提交于 2021-01-28 16:43:51
问题 Here is how my folder is structured in google drive: Picture |----------Date1 |-----Pic1.png |-----Pic2.png |----------Date2 |-----Pic3.png |-----Pic4.png Right now I only have the ID of Picture folder (the parentID folder). Now I want to get Pic1 picture (inside Date1 folder). Is it possible to query only 1 time to get the picture with only the Picture folder's ID or I will have to query multiple times (get the Date1 and Date2 folder ID, then continue querying) ? Here is my code right now

Google picker selected file callback

时光怂恿深爱的人放手 提交于 2021-01-28 13:33:33
问题 i have integrated and try to use the google picker api google picker api but can i turn the callback into file ? so i can upload the file to my server function pickerCallback(data) { if (data.action == google.picker.Action.PICKED) { var fileId = data.docs[0].id; alert('The user selected: ' + fileId); } } 回答1: Once you have the fileId , you can download the file as explained in the documentation for Download files with the Drive API Unfortunately, there is no sample for Browser Javascript, but

Check if user is already logged in

匆匆过客 提交于 2021-01-28 12:30:55
问题 I am developing an application for Windows Phone 8.1 which will use Google Blogger Api. For authorization I am using the GoogleWebAuthorizationBroker.AuthorizeAsync() function and everything is alright with that, I can do everything with my blog (get the blog/post lists, edit, delete, add posts ...). When my application opens at first it calls GoogleWebAuthorizationBroker.AuthorizeAsync() function and in case when the user is already logged in (previously authenticated and authorized) the

How to get user address and phone number from google auth

不问归期 提交于 2021-01-28 12:16:56
问题 Iam using passport.js for authentication using passport-google-oauth20, I was wondering how can get user information like address, phone number ? so far i just can get information like email, name, profile but not address and phone number. how can access user data address after login with google ? Is there any API to access this user address and phone number ? what should I do ? this is my code : Passport setup passport.use( new GoogleStrategy({ //options for the google strategy callbackURL:

Google FIT Rest API Get Sessions

荒凉一梦 提交于 2021-01-28 12:10:31
问题 I'm trying to get sessions from a startDate to a EndDate, but every time i try return always a empty record HTTP/1.1 200 OK Content-length: 3 X-xss-protection: 1; mode=block Content-location: https://www.googleapis.com/fitness/v1/users/me/sessions?startTime=2015-11-20T00:00:00.00Z&endTime=2015-11-30T23:59:59.99Z X-content-type-options: nosniff Expires: Fri, 01 Jan 1990 00:00:00 GMT Vary: Origin,X-Origin Server: GSE Etag: "" Pragma: no-cache Cache-control: no-cache, no-store, max-age=0, must

Why is Google Picker Hello World not working?

无人久伴 提交于 2021-01-28 11:52:28
问题 i just changed the developerKey and clientId. upon testing, a popup showed to choose which google account should i use. after that, it showed a popup again for me to allow my application to access the drive. after clicking the allow button. nothing happened. popup closed. no message in console. here is the link https://developers.google.com/picker/docs/#hiworld 回答1: You also need to enable Google Picker API on your project: Go to https://console.cloud.google.com/apis/dashboard?project=YOUR

Google drive modifiedTime changes after update response

此生再无相见时 提交于 2021-01-28 10:06:53
问题 I updated a file using the client API: FilesResource.UpdateMediaUpload request; request = Service.Files.Update(new Google.Apis.Drive.v3.Data.File(), id, stream); request.Upload(); var Modified = request.ResponseBody.ModifiedTime; I then requested for the same file after: var modified = Service.Files.Get(id).Execute().ModifiedTime These dates are milliseconds out of sync, i.e.: modified.ticks = 636284845226980000 Modified.ticks = 636284845229162448 Modified.time - modified.time = 218ms Why is

people API google quota limits

泪湿孤枕 提交于 2021-01-28 09:05:44
问题 I'm looking into the People.API this is only for google+ users. Does anyone know How many queries can I ask a day/minutes for free? what are the General Quota limits? How much will it cost to go beyond the threshold? Thanks, 回答1: There are two different People APIs, for both you can see the quotas in the cloud console: Go to the corresponding API link: G+ People API (only works for G+ users) https://console.cloud.google.com/apis/api/plus.googleapis.com/quotas People API (works for all users)