google-api

Why isn't the Google QPX Express API returning results for all airlines?

徘徊边缘 提交于 2019-12-23 09:34:07
问题 I enabled access to the Google QPX Express API to do some analytics on the prices of Delta's tickets and Fare Classes. But the response seems to only include flights from a limited set of airlines. For example, the following request { "request": { "passengers": { "adultCount": 1 }, "slice": [ { "origin": "JFK", "destination": "SFO", "date": "2015-02-15", "maxStops": 0 } ], "solutions": 500 } } only returns flights for AS (Alaska Airlines), US (US Air), VX (Virgin America), B6 (JetBlue), and

Batch request in Google Calendar V3 REST API

假装没事ソ 提交于 2019-12-23 09:04:07
问题 How to get/add/update Google Calendar Events using batch request through V3 REST API? I've tried and but not works. According to the docs (https://developers.google.com/google-apps/calendar/batch) it should be possible to send a batch request by posting a multipart/mixed content type message to the API. An example of a working HTTP POST would be great. Thanks, Riyaz 回答1: The following batch request, gets the eventId1, updates the eventId2 and creates a new event under calender that is

Google Calendar v3 API [Events: list] request return Empty List

和自甴很熟 提交于 2019-12-23 09:00:31
问题 i'm using python urllib for making request on Google calendar(API V3). Now,Problem is that when i make request for 'Events: list',then i got zero items in response although there are events in that calendar. Example { "kind": "calendar#events", "nextPageToken": "CigKGm83a292ZzZ2YXBsNXRsMHJhZnV2cGprdHVvGAEggIDA97TfuYYUGg0IABIAGOjEqd_6q7kC", "items": [ ] } If i use ' nextPageToken ' in next request it works fine .(But i don't want make any Extra request.) This problem not occur every time. If i

Using the Google API .NET client with an existing access token

限于喜欢 提交于 2019-12-23 08:54:04
问题 The use-case is the following: a mobile app is authenticating a user with Google and at some point, we need to publish a user's video to his YouTube account; for practical reasons, the actual publication should be done by the back-end (large files that are already stored there). As the user is already authenticated by the app, the app just sends the user's access token to the back-end. Now my struggle is to find how to use this access token with the .NET client... So far I've tried to create

python argparse - pass values WITHOUT command line

巧了我就是萌 提交于 2019-12-23 08:03:09
问题 I think I'm not understanding something basic about python's argparse. I am trying to use the Google YouTube API for python script, but I am not understanding how to pass values to the script without using the command line. For example, here is the example for the API. The examples on github and elsewhere show this example as being called from the command line, from where the argparse values are passed when the script is called. I don't want to use the command line. I am building an app that

python argparse - pass values WITHOUT command line

醉酒当歌 提交于 2019-12-23 08:01:03
问题 I think I'm not understanding something basic about python's argparse. I am trying to use the Google YouTube API for python script, but I am not understanding how to pass values to the script without using the command line. For example, here is the example for the API. The examples on github and elsewhere show this example as being called from the command line, from where the argparse values are passed when the script is called. I don't want to use the command line. I am building an app that

Unexpected response code 403 for https://www.googleapis.com/games/v1/players/1123xxxxxx11712506520 and other play-services errors

∥☆過路亽.° 提交于 2019-12-23 07:51:42
问题 I'm trying to make games API work, with reference to https://github.com/playgameservices/android-samples/blob/master/BaseGameUtils/src/com/google/example/games/basegameutils/BaseGameActivity.java as sample code. Mine is quite similar, basically I'm trying to connect a game client and receive a negative answer. When trying to manage it with startResolutionForResult() this is what I got: E/Volley(15638): [1492] il.a: Unexpected response code 403 for https://www.googleapis.com/games/v1/players

Do the Google+ profile picture URLs returned by the Google API change?

允我心安 提交于 2019-12-23 07:41:30
问题 So, I'm using the Google API to fetch people's profile picture using their user_id. The Google API returns a JSON like following: { image: { url: "https://lh5.googleusercontent.com/OGjgCn9fCPk/AAAAAAAAAAI/AAAAAAAAASU/AitRTc5cUyg/photo.jpg?sz=50", isDefault: false } } My question is, does this URL change? I mean will it change if the user changes their profile picture or if some CDN restructuring occurs. Do I need to fetch it every time? Or can I just save and use it forever? If not is their

Google Drive Api - Custom IDataStore with Entity Framework

泪湿孤枕 提交于 2019-12-23 07:37:02
问题 I implemented my custom IDataStore so that I can store End User Tokens on my database instead of the default implementation, which is saved on FileSystem within %AppData%. public class GoogleIDataStore : IDataStore { ... public Task<T> GetAsync<T>(string key) { TaskCompletionSource<T> tcs = new TaskCompletionSource<T>(); var user = repository.GetUser(key.Replace("oauth_", "")); var credentials = repository.GetCredentials(user.UserId); if (key.StartsWith("oauth") || credentials == null) { tcs

Is GET_ACCOUNTS permission still required for Google Drive REST API?

孤者浪人 提交于 2019-12-23 07:36:59
问题 Google has deprecated Google Drive Android API. We are migrating over to Google Drive REST API (v3). 2 years ago, we have experience in using Google Drive REST API (v2). We know that GET_ACCOUNTS permission is required, for GoogleAuthUtil.getToken() to work correctly - Google Drive API - the name must not be empty: null (But I had passed valid account name to GoogleAccountCredential) When we look at example of Google Drive REST API (v3) - https://github.com/gsuitedevs/android-samples/blob