gdata

Selecting all rows with distinct column values - Google query language

纵饮孤独 提交于 2019-12-25 16:25:48
问题 Consider the following table : Test Name Bug name Status Name1 Bug1 Fail Name2 Bug1 Fail Name3 Bug2 Fail Name4 Bug3 Fail Name5 Bug4 Fail Name6 Bug3 Fail I want to be able, on a given Google spreadsheet to select all rows containing distinct 'Bug name' columns, so the result should be the following : Test Name Bug name Status Name1 Bug1 Fail Name3 Bug2 Fail Name4 Bug3 Fail Name5 Bug4 Fail 回答1: Assuming you have the example table in range A1:C, I think the expected result could be achieved with

Google contacts API returns low resolution photos

别来无恙 提交于 2019-12-25 03:55:18
问题 I'm using Google's Data APIs Java library to access contacts and when using the getContactPhotoLink() method I can only get low resolution (96x96) photos. Is there anyway I can get bigger resolution photos? On my Android phone the photos showing up are definitely not 96x96 pixels... Thanks 回答1: It heavily depends on the version of Android. If you have anything under ICS 4.0 then the maximum image size is 96x96. It may look bigger on your phone, but thats because the image is being scaled to

Google Calendar Events

▼魔方 西西 提交于 2019-12-25 03:33:02
问题 I am having some trouble adding events to Google Calendar. I can list events but when I try to add an event I am getting a 403 Forbidden Error. I am able to add events to primary, but when I try another one, in this case the one I've mnetion, I run into the 403 Forbidden Error. Here is the code I have: require_once 'vendor/autoload.php'; define('APPLICATION_NAME', 'Calendar'); define('CREDENTIALS_PATH', 'credentials/calendar.json'); define('SECRET_PATH', 'secret.json'); define('SCOPES',

Passing data back :Delegate method not called

别来无恙 提交于 2019-12-24 08:57:29
问题 I am working on an app that connects with google docs using oauth 2.0, once the user has connected, He clicks a button that goes to a tableView to show all the documents. For this I am using a segue and passing data forward. Now I want the user to select one document, put a checkmark on it and return to the viewcontroller passing data back and display wich document was selected. I read that for passing data back I needed to use a protocol and a delegate. I followed this: Passing Data between

YouTube UITableView from a search query using GData

妖精的绣舞 提交于 2019-12-24 00:37:45
问题 I'm trying to customize a table view to display a feed of youtube videos based on a search query. I found this code http://pastebin.com/vmV2c0HT which displays a feed of a YouTube channel in a tableview, it works fine. However, when modifying the viewDidLoad function to search for a query instead of a user feed, I always end up with a blank table view. Here is my viewDidLoad function: - (void)viewDidLoad { GDataServiceGoogleYouTube *service = [self youTubeService]; NSString *searchString = @

How to add google api to .net c#

馋奶兔 提交于 2019-12-23 19:17:38
问题 How can i add the google data API to the .net framework. I saw the gdata documentation but was of no help. Now I am confused whether should I use web reference? 回答1: You need to add a reference to the GData DLL ( Google.GData.Client.dll ) to your project. In Visual Studio, this can be accomplished by: "Select your project" => "Add Reference" => "Browse DLL's". A detailed explanation can be found here. 来源: https://stackoverflow.com/questions/1397154/how-to-add-google-api-to-net-c-sharp

Retrieve one contact with python gdata.contacts.client

会有一股神秘感。 提交于 2019-12-23 03:13:11
问题 I try to retrieve a contact with gdata.contacts.client : Auth : class ModifyMe(webapp.RequestHandler): @login_required def get(self): """print contacts""" current_user = users.get_current_user() access_token_key = 'access_token_%s' % current_user.user_id() token = gdata.gauth.ae_load(access_token_key) gcontacts_client = gdata.contacts.client.ContactsClient(source = SETTINGS['APP_NAME']) gcontacts_client = token.authorize(gcontacts_client) According to API documentation, i tried this : contact

Retrieving token and secret from gdata.gauth.OAuthHmacToken python object

余生长醉 提交于 2019-12-22 08:44:45
问题 I'm following Google's great sample code for three-legged OAuth. Specifically, I'm looking at the python version of the code. I'm stuck between 'Upgrading to an access token' and 'Using an access token'. In 'Upgrading to an access token', there is a line of code as follows: access_token = client.GetAccessToken(request_token) In 'Using an access token', there is a line of code as follows: client.auth_token = gdata.gauth.OAuthHmacToken(CONSUMER_KEY, CONSUMER_SECRET, TOKEN, TOKEN_SECRET, gdata

Google Calendar feed api deleted events

岁酱吖の 提交于 2019-12-22 07:05:02
问题 I'm syncing the Google Calendar with my application (I store events in a database). When an event is updated I can easily find the last updates by sorting the event feed on the 'updated' order. However, if an event is removed / deleted, how can I track this update from the feed? 回答1: Try to add showdeleted=true to your query feed and then check for EventStatus.CANCELED on retrieved entries. Check this thread for further information. 回答2: I did exactly the thing you want to do (see this post:

Update google spreadsheet using python client API on GAE app

房东的猫 提交于 2019-12-21 23:18:14
问题 I've got a google spreadsheet owned by a GAE service account and I want my GAE Python app to update a cell in one of the rows. Based on some reading, these are my findings: the spreadsheets service is old-school. It's a Google Data API and most Google services are now on the Google API platform. For Google API services, one can use a service account to do two-legged oauth2 access, but not for Google Data API services. Oh, it seems one can do two-legged oauth on Google Data API services, but