gdata-api

google docs api: get list of folders

I want to move a document into a folder. The client API for that is MoveIntoFolder gd_client.MoveIntoFolder(self, source_entry, folder_entry) #folder_entry: DocumentListEntry An object with a link #to the destination folder I can't figure out how to get folder_entry from the client API. Digging into the protocol I think I ...

TypeError when trying to upload Pictures from Google App Engine to Picasa with the GData API

I'm trying to write a small tool to upload Pictures from Google App Engine to Picasa. Fetching the image works, but when i try to upload it i get the error "TypeError: stat() argument 1 must be (encoded string without NULL bytes), not str" The Code basically looks like this: def getfile(url): result = urlfetch.fetch(url) if re...

GData Error: Intermittent "Invalid root element"

I'm sending GData queries to renders traffic charts for users of Instructables.com using the Java GData package. However, this exception is sometimes thrown: [Line 1, Column 0] Invalid root element, expected (namespace uri:local name) of (http://www.w3.org/2005 Atom:feed), found (:feed The only mention of this error I can find online ...

Local timezone problem in GAE working with Google Data API

Hi guys! I am working in a small app in the Google App Engine (Python), which uses the Google Data API in order to create a new calendar in a Google account and populate it with some events. The events that I am using are parsed from another place, and they have the date in the Europe/Stockholm timezone, (I think it is CEST or CET). T...

What is the unique ID (identifier) for a Google GData ContactEntry object?

Is there a unique identifier for the Google GData ContactEntry object? Basically, if there are two entries with names "Andy Lim" for example, we need to distinguish the entries and what is the identifier that can be used. Also, if we copy the contactentry to contacts folder in another google account, will the identifier stays the same, o...

Cannot insert items to Google Base using GData through Zend Framework (Message: Expected response code 200, got 404)?

Hi All, I have been trying for hours to get this working and I still have had no joy. Basically I am trying to connect to Google Base using the GData library built into Zend Framework 1.9. I have cut my example right down the nothing, just to get it working. All I am trying to do for the sake of the example is simply connect and insert ...

How can I insert a new Event for non primary Calendar using gdata.js ?

I am using gdata.js for inserting new Event. I am able to insert only user's primary calendar. The primary Calendar Feed uri is http://www.google.com/calendar/feeds/default/private/full Which feed uri can I use for insert a new event other than primary calendar. Thanks in advance. ...

What is a GDATA extension profile?

I want to get the XML in atom format of a GoogleDocs spreadsheet using the [generateAtom(..,..)][1] method of the class BaseEntry which a SpreadsheetEntry inherits. But I don't understand the the second parameter in the method, ExtensionProfile. What is it and will this method call suffice if I just want to get the XML in atom format? ...

Get physical map location of object based off user input

I am getting user input into a python application of a local landmark. With this data I am trying to get the longitude and latitude of their object using Google maps. I am trying to work with the Google gdata api for the maps but I did not find a way to get long and lat data from a search query when working in python. I am ok using any...

YouTube Gdata API retrieving favorites using $yt->newVideoQuery

Maybe that's a somewhat uncommon question but here we go. Here's the code $userName=("Google"); $yt = new Zend_Gdata_YouTube(); $query = $yt->newVideoQuery(); $query->setAuthor($userName); $query->setMaxResults(3); $query->setStartIndex(2); printVideoFeed($yt->getVideoFeed($query)); And it works fine. But my client want to include hi...

using Zend_Gdata_Spreadsheets for public spreadsheets?

I have this code which is working, to load a Google Spreadsheet and load some data from it. If the spreadsheet in question is public, how do i modify the code to not require a username/password? $key="keytothespreadsheet"; $user="[email protected]"; $pass="*****"; $authService = Zend_Gdata_Spreadsheets::AUTH_SERVICE_NAME; $httpClient = ...

Updating Google's Contacts API with JSON

With the Google Contacts API, you can GET contact information using JSON, but is there a way to update it using JSON? I haven't had any success in my attempts, and continue to get a "content not allowed in prolog" error when I try (seemingly indicating that they're expecting XML in the PUT request). On the GET request, I GET from follo...

GData Google API Objective-C client help for iPhone

Hello. There seems to be no available documentation for the Objective-C client for the Google Data API. Google's API help webpage only has options for .NET, Java, Python, and the HTTP Protocol. I want to access data from a spreadsheet on my Google Docs account, and then add new data. I have added the correct source codes to my projec...

How do I authenticate a Google user on the iPhone using GData?

Hello, I am new in iphone application. I want to make a simple application in which User can login from google and facebook. I have integrate API's for both of them. I have also completed the facebook connection but I dont know how to validate the Google user with its API (Gdata). Can anybody please help me for authentication of google a...

How can I insert a new Event for non primary Calendar? Using python gdata

def addEvent(calendar_service): event = gdata.calendar.CalendarEventEntry() event.content = atom.Content(text='Tennis with John 30.12.2009 15:00-16:00') event.quick_add = gdata.calendar.QuickAdd(value='true') new_event = calendar_service.InsertEvent(event, '/calendar/feeds/default/private/full') This write to primary Ca...

How do I update attachment content with the google sites python API?

I'm trying to write a script that will automatically update some attachments on a website created and managed through Google Sites. This should be possible as Google released the Sites API in September and the Python GData API claims to support sites. However, the closest method I can find is called client.update, which allows me to up...

How to add GData.framework in my iPhone project?

Hi, I'm just giving it a shot to learn objective C and Cocoa and play aound with the Google APIs. I am trying to follow the instructions on the main page to include the framework within my application but I'm not having much luck. Would someone be able to provide some instuctions with a bit more detail? I would greatly appreciate it. ...

How to decode Google spreadsheet's Json respose as a Php Array

My google Docs Spreadsheet call returns this response in the json format (I only need everything after "rows") please look at the formatted response here : ) I use php's json_decode function to parse the data and use it (Yes, I am awful at php) This code returns NULL, and according to the documentation, NULL is returned "if the json can...

Accessing SSL enabled Google Apps feed with http protocol

Building an app using a calendar on a Google Apps domain that has SSL enforced domain-wide. I initially found the problem when building a Rails app using the GCal4Ruby library, which used the allcalendars feed URL with a non-SSL protocol (GCal4Ruby debug output snippet [sic]): … url = http://www.google.com/calendar/feeds/default/allcale...

How to prevent JPEG compression when uploading image through Picasa API?

I'm using the Python client library for the Picasa Web Albums API to upload some JPEG images to an album. But the photos appear very compressed once uploaded. In Picasa 3.6 there is an option to upload images in their original quality without any compression, but is there are similar option I can use from within the API? This is some of...