picasa

POST request to Picasa API

若如初见. 提交于 2019-12-02 10:23:46
问题 I'v been struggling with POST on the Picasa API. Here's code: $.ajax({ type: "POST", url: 'https://picasaweb.google.com/data/feed/api/user/' + uid + '/albumid/' + album_id + '/photoid/' + photo_id, crossDomain: true, data: { content: content }, success: function() { alert("Success"); }, error: function() { alert('Failed!'); } }); I've already retrieved some information via GET without problems. Now comes the fun part, when I try to test the service with Google this error occurs:

Does Picasa api allow CORS Post?

别说谁变了你拦得住时间么 提交于 2019-12-02 00:29:28
问题 Picasa api allows cross domain GET requests. But when I tried posting an image/comment, I got the following error. XMLHttpRequest cannot load https://picasaweb.google.com/data/feed/api/user/default/albumid/5825390619150171601?access_token=ya29.AHES6ZSR2XSlImdSJxNBVczzfz4DPoW3vRvywTNg8ELNs6OStqSBbTM . Origin 'http://localhost' is not allowed by Access-Control-Allow-Origin. var url = 'https://picasaweb.google.com/data/feed/api/user/default/albumid/' + albumId + '?access_token=' + myToken; $

Does Picasa api allow CORS Post?

丶灬走出姿态 提交于 2019-12-02 00:06:11
Picasa api allows cross domain GET requests. But when I tried posting an image/comment, I got the following error. XMLHttpRequest cannot load https://picasaweb.google.com/data/feed/api/user/default/albumid/5825390619150171601?access_token=ya29.AHES6ZSR2XSlImdSJxNBVczzfz4DPoW3vRvywTNg8ELNs6OStqSBbTM . Origin ' http://localhost ' is not allowed by Access-Control-Allow-Origin. var url = 'https://picasaweb.google.com/data/feed/api/user/default/albumid/' + albumId + '?access_token=' + myToken; $.ajax({ url: url, data: f /*image file object*/, contentType: f.type, processData: false, type: "POST",

Pictures not showing up in site hosted by GitHub

旧街凉风 提交于 2019-12-01 21:58:41
问题 I have a website hosted by Github and I am having issues with displaying pictures. I recently tried to upload new pictures but despite the path being right, the page fails to load the images and gives a 404 error in the source as it tries to find the path. Here is the repo of my site: https://github.com/jeanturban/jeanturban.github.io I think it might have something to do with Picasa as when I download a picture from the internet and update the path accordingly it works fine. But when I try

Pictures not showing up in site hosted by GitHub

只谈情不闲聊 提交于 2019-12-01 20:17:44
I have a website hosted by Github and I am having issues with displaying pictures. I recently tried to upload new pictures but despite the path being right, the page fails to load the images and gives a 404 error in the source as it tries to find the path. Here is the repo of my site: https://github.com/jeanturban/jeanturban.github.io I think it might have something to do with Picasa as when I download a picture from the internet and update the path accordingly it works fine. But when I try to use pictures from my computer, or if I try to export from Picasa to my "img" folder, then it breaks.

validating Android's authToken on third party server

馋奶兔 提交于 2019-11-30 19:22:05
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 server part, which accepts the token (send from android application), then issues a request to an URL

Using OAuth2 with service account on gdata in python

不想你离开。 提交于 2019-11-30 00:55:44
I want to use data.photos.service.PhotosService to push and pull photos from Picasa. I got a service key file XXXXXXXX-privatekey.p12 from Google console and am now trying to authenticate using said key with google. The documentation for OAUTH2 using appengine has led me to believe that using the following would be of use: f = file(settings.SITE_ROOT + '/aurora/' + settings.PRIVATE_KEY, 'rb') key = f.read() f.close() credentials = SignedJwtAssertionCredentials(settings.SERVICE_ACCOUNT_NAME, key, scope = 'http://picasaweb.google.com/data https://www.googleapis.com/auth/userinfo.email https:/

Google Plus API & photos?

杀马特。学长 韩版系。学妹 提交于 2019-11-29 09:25:48
问题 As I understand, there's no official G+ API for getting photos from albums. But I've figured out from here that Google Plus uses Picasa internally. My questions are: Is it possible to figure out only via G+ API Picasa userId? If yes, how can I do it with G+ API if I only have the Google Plus page URL(something like this: https://plus.google.com/104560124403688998123 - or - https://plus.google.com/115999964287637644901) ? Thanks in advance. 回答1: The link you "figured it out from" tells what

How to build a http post request with the correct entity with Java and not using any library?

孤街浪徒 提交于 2019-11-29 08:47:33
How should I build the entity to achieve this post request? POST https://picasaweb.google.com/data/feed/api/user/userID/albumid/albumID/photoid/photoID <entry xmlns='http://www.w3.org/2005/Atom'> <content>great photo!</content> <category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/photos/2007#comment"/> </entry> It's from: http://code.google.com/intl/zh-TW/apis/picasaweb/docs/2.0/developers_guide_protocol.html#AddComments Could someone provide an example or any tips? Many thanks. UPDATE: I added my code here: List<Header> headers = new ArrayList<Header>();

Using OAuth2 with service account on gdata in python

梦想与她 提交于 2019-11-28 21:40:41
问题 I want to use data.photos.service.PhotosService to push and pull photos from Picasa. I got a service key file XXXXXXXX-privatekey.p12 from Google console and am now trying to authenticate using said key with google. The documentation for OAUTH2 using appengine has led me to believe that using the following would be of use: f = file(settings.SITE_ROOT + '/aurora/' + settings.PRIVATE_KEY, 'rb') key = f.read() f.close() credentials = SignedJwtAssertionCredentials(settings.SERVICE_ACCOUNT_NAME,