google-data-api

Accessing Google Spreadsheets with C# using Google Data API

a 夏天 提交于 2019-12-17 03:21:20
问题 I'm having some information in Google Spreadsheets as a single sheet. Is there any way by which I can read this information from .NET by providing the google credentials and spreadsheet address. Is it possible using Google Data APIs. Ultimately I need to get the information from Google spreadsheet in a DataTable. How can I do it? If anyone has attempted it, pls share some information. 回答1: According to the .NET user guide: Download the .NET client library: Add these using statements: using

Getting 'Multipart must have Atom and media part' error when trying to upload a photo with metadata to Picasa

微笑、不失礼 提交于 2019-12-13 18:43:15
问题 I have the following code which is attempting to upload an image with metadata to a Picasa web album. The code below works for uploading the image if I take out the metadata and just do a straight Content-Type: image/jpeg POST request. $albumUrl = "https://picasaweb.google.com/data/feed/api/user/$userId/albumid/$albumId"; $imgName = $_SERVER['DOCUMENT_ROOT'] . '/picasa/cute_baby_kitten.jpg'; $rawImgXml = '<entry xmlns="http://www.w3.org/2005/Atom"> <title>plz-to-love-realcat.jpg</title>

nltk dependencies in dataflow

六月ゝ 毕业季﹏ 提交于 2019-12-11 12:48:24
问题 I know that external python dependencies can by fed into Dataflow via the requirements.txt file. I can successfully load nltk in my Dataflow script. However, nltk often needs further files to be downloaded (e.g. stopwords or punkt). Usually on a local run of the script, I can just run nltk.download('stopwords') nltk.download('punkt') and these files will be available to the script. How do I do this so the files are also available to the worker scripts. It seems like it would be extremely

Which Google APIs support OAuth2 Domain-Wide Delegation?

自古美人都是妖i 提交于 2019-12-11 12:04:48
问题 Currently in the process of trying to move over to use OAuth2 from of OAuth1 2LO (2 Legged OAuth). At first it looked like we would not be able to make the move as we rely heavily on 2LO and almost all of the product APIs (with the exception of Drive) have this message in their docs: If your application has certain unusual authorization requirements, such as logging in at the same time as requesting data access (hybrid) or domain-wide delegation of authority (2LO), then you cannot currently

How to access Google client api without Oauth (just API key)

為{幸葍}努か 提交于 2019-12-11 04:35:28
问题 I am trying to access Google api client (Ruby) without Oauth.. I have found this info: http://thecodeabode.blogspot.com.au/2012/07/google-api-ruby-client-authorizing-with.html But unfortunately, if I follow the instructions (Here is what I do): require 'google/api_client' client = Google::APIClient.new(:key => "MYKEY",:authorization => nil) yt = client.discovered_api("youtube", "v3") result = client.execute( :api_method => yt.search.list, :parameters => { :key => "MYKEY", :q => "dogs", :part

Custom Fields and Extended properties - Are they Same?

China☆狼群 提交于 2019-12-11 04:06:56
问题 There is an option to "Add a custom field" in Google Contacts web page, when we create/edit a contact. Using Google Contact API v3.0, we can add "extended properties" using 'gd:extendedProperty' xml-element. Are these two pointing to the same field. When I create an extended property via API, I am not seeing that field/value in the Google contacts web page view. I get a feeling that, the gd:extendedProperty is solely for API based manipulation purpose. Is it right? In that case, is it

Updating cell in Google Spreadsheets returns error “Missing resource version ID” / “The remote server returned an error: (400) Bad Request.”

感情迁移 提交于 2019-12-10 10:14:17
问题 I would like to update a cell value in Google Spreadsheets but unfortunatelly an error is received: Google.GData.Client.GDataRequestException was unhandled HResult=-2146233088 Message=Execution of request failed: https://spreadsheets.google.com/feeds/cells/1nW8nxoS2l9pbj6dctreEfKHNXmsfbbsCAvOd7TIj4Bo/od6/private/full/R1C1 Source=Google.GData.Client ResponseString=Missing resource version ID StackTrace: at Google.GData.Client.GDataRequest.Execute() ... at System.Threading.ThreadHelper

Accessing nested objects in JSON feed - Sencha Touch

ぐ巨炮叔叔 提交于 2019-12-09 00:17:42
问题 I'll begin with the usual disclaimer: new to Sencha Touch/working with JSON, floundering in the dark. Any help or prodding in the right direction is appreciated more than you know! I'm trying to get my app to fetch data from a public Google Spreadsheet JSON feed. From what I've managed to figure out, my current model is based on JSON arrays, NOT nested objects. How do I access and return a nested object? Ext.regModel('Count', { fields: [{name:'$t'}] }); this.list = new Ext.List({ itemTpl: new

Google Sites API + OAuth2 (on Appengine)

你。 提交于 2019-12-07 17:40:09
问题 I've been trying to make use of the Python Library to access the Google Sites API. The first step requires a user to authorize our application, they recommend to use OAuth2 and they provide a library that can be found here. At the end of the authorization process you end up with an OAuth2Credentials object. The problem is, when I try to make requests to the Google Sites API, let's say I do: import gdata.sites.client client = gdata.sites.client.SitesClient(site=None, domain='mydomain.com') I

How can I get a Google Document's Description?

主宰稳场 提交于 2019-12-07 15:57:22
问题 The Goal Say I have a collection/folder of documents in Google Docs/Drive, and I want to programmatically retrieve the Description associated with each: (You get this by selecting the file in the list, then hitting the "eye" icon) The Working Code I am using the .NET library for the Google Data API and have the basic login and retrieval working without issue: GDataCredentials credentials = BuildSomethingUp(); RequestSettings settings = new RequestSettings("code.google.com/p/exult/",