picasa

validating Android's authToken on third party server

坚强是说给别人听的谎言 提交于 2019-12-19 01:39:32
问题 I'm writing an Android application, which uses AccountManager to get the token. From an android app I'm able to interact with Google Picasa - it works fine. What I would like to achieve is the following: send some text + authToken to my third party server, then check if the token is correct before saving the text. Now the question is: is it possible to determine if the authToken of a particular token is correct solely on the token itself (and maybe email address). I've already programmed the

validating Android's authToken on third party server

北慕城南 提交于 2019-12-19 01:37:41
问题 I'm writing an Android application, which uses AccountManager to get the token. From an android app I'm able to interact with Google Picasa - it works fine. What I would like to achieve is the following: send some text + authToken to my third party server, then check if the token is correct before saving the text. Now the question is: is it possible to determine if the authToken of a particular token is correct solely on the token itself (and maybe email address). I've already programmed the

XMLHttpRequest: Multipart/Related POST with XML and image as payload

…衆ロ難τιáo~ 提交于 2019-12-17 10:42:21
问题 I'm trying to POST an image (with Metadata) to Picasa Webalbums from within a Chrome-Extension. Note that a regular post with Content-Type image/xyz works, as I described here. However, I wish to include a description/keywords and the protocol specification describes a multipart/related format with a XML and data part. I'm getting the Data through HTML5 FileReader and user file input. I retrieve a binary String using FileReader.readAsBinaryString(file); Assume this is my callback code once

Unable to authenticate when trying to add photos or albums through Google Picasa API

混江龙づ霸主 提交于 2019-12-14 04:02:11
问题 I am trying to upload a photo to an album through Picasa's API, however I am getting an authentication error. My credentials are being successfully authenticated right when the program starts, just not when I am trying to upload a photo or add an album Here is the code I have: import gdata.photos.service import gdata.media import gdata.geo gd_client = gdata.photos.service.PhotosService() gd_client.email = 'username@gmail.com' gd_client.password = 'password' gd_client.source = 'exampleCo

upload image to Picasa using picasawebservice in android

社会主义新天地 提交于 2019-12-14 03:16:21
问题 I am developing Android app which uploads images to Picasa but while authentication i am getting an ClassnotfoundException and some time Unable to execute dex: Java heap space all Gdata jar files are in Lib folder which includes Guava-11.0.2 file. Note: I am verifying the application on Android Emulator. package com.example.temp; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view.View; import android.view.View

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>

Simple example to upload photos into google picasa

对着背影说爱祢 提交于 2019-12-13 01:39:45
问题 I would like to move a large number of pictures into picassa. I'm having no trouble uploading using InsertPhotoSimple, but I want to upload metadata too and am having trouble with InsertPhoto. Can anyone point me to a simple example or tell me what I'm doing wrong? Here is what I have now: #!/bin/python import gdata.photos.service import gdata.media gd_client = gdata.photos.service.PhotosService() gd_client.email = 'my_google_email' gd_client.password = 'my_pass' gd_client.source = 'my_source

how often do Google auth tokens expire on Android? (or: how not to bother Grandma)

非 Y 不嫁゛ 提交于 2019-12-12 15:05:44
问题 I'm writing a picture frame app for my grandma on Android that will update automatically with pictures from her Picasa album. (Not that she knows what Picasa is.) The app will log in to Picasa automatically using her registered Google account. (Not that she knows what a Google account is, or that she has one.) Through much pain and reading erroneous/obscure/contradictory/vague documentation, I am slowly starting to have my app authenticate itself using the default Android Google account. Of

getRealPathFromURI() not working with ICS & Picasa based images

一笑奈何 提交于 2019-12-12 11:10:16
问题 I'm trying to get the local path of a image in order to upload it to a server. When using pre ICS it would get a standard path within the android device via getRealPathFromURI(theURI) However with ICS URI will contain a uriString as something like : content://com.google.android.gallery3d.provider/picasa/item/12312312312312 . and running getRealPathFromURI(theURI) returns null Do I now need to extract the above uriString and manually download the image via the API (if i detect that its a

How to avoid delay when displaying Picasa photos using Picasa API?

﹥>﹥吖頭↗ 提交于 2019-12-11 18:07:10
问题 I’m currently working with the Google Picasa API (C#) to display photos from public Picasa web album on my website. The issue is that there is a delay (seconds to minutes) from the moment changes are done in web album to the moment it is reflected via API. I need it to be reflected immediately: When new photo is uploaded to the album I need it to be displayed on the same time exactly in the web site. It got even more interesting when I found out changes are displayed without delay when