3 messages in com.googlegroups.google-picasa-data-apiRe: Javascript w/ Picasa Web Albums
FromSent OnAttachments
wsstefan12 Oct 2007 13:22 
Ryan Boyd (Google)15 Oct 2007 20:36 
Stefan Roesch15 Oct 2007 21:28 
Subject:Re: Javascript w/ Picasa Web Albums
From:Stefan Roesch (wsst@gmail.com)
Date:10/15/2007 09:28:02 PM
List:com.googlegroups.google-picasa-data-api

I figured as much. Any guess as to how long that will take? Is there anyway I can help?

On 10/15/07, Ryan Boyd (Google) <api.@google.com> wrote:

Hello Stefan,

The JavaScript client library is only currently supported for use with the Calendar data API. While it may work with some of the other services (without the convenience classes), it doesn't have support for handling media uploads. We hope to add this functionality in the future.

When Picasa support is available, we'll certainly post a note on this group.

Cheers, -Ryan

On Oct 12, 1:23 pm, wsstefan <wsst@gmail.com> wrote:

I'm using the Javascript client library which has the base class and calendar class implemented.

I can successfully use the Javascript library to get feeds, but I'm having trouble POST-ing a photo to Picasa Web Albums.

I've successfully done it with the Python client library, so I know my jpeg stream is correct and I am constructing the body of my POST requests properly.

Currently I've tried posting a multipart body and just an image/jpeg body and I'm getting the same error for both:

"unable to find a provider for com.google.gdata.data.photos.GphotoEntry"

Which I assume means that the Javascript library doesn't implement this type. My javascript looks like:

function post(data) { picasaService.setHeaders("Content-type", 'multipart/related; boundary="END_OF_PART"'); picasaService.insertEntry(POST_FEED_URL, data, handleUpload, handleError);

}

function postImage(data) { //alert("posting image"); picasaService.setHeaders("Content-type", "image/jpeg"); picasaService.insertEntry(POST_FEED_URL, data, handleUpload, handleError);

}

where "data" is a well formed request body and

picasaService = new google.gdata.client.GoogleService();

Any ideas or solutions? I'm glad to help, but there's no way of developing for the Javascript client library for security reasons, I'm sure.

-Stefan

http://www.DrawAndShare.com