i'v been struggling with POST on 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 informations via GET without problems.
Now comes the fun part, when i try to test service with google this error
occurs:
XMLHttpRequest cannot load
https://picasaweb.google.com/data/feed/api/user/userid/albumid/albumid/photoid/photoid?content=foo%bar.
Origin http://localhost:3000 is not allowed by
Access-Control-Allow-Origin
.
And when i try in firefox in request header method is changed to OPTIONS
and status is 204: no content.
Also, I've tried to change datatype to jsonp but then http method chages
to GET and of course it behaves like GET
any help is appriciated, this 'little' issue is terrorizing me all day
--
You received this message because you are subscribed to the Google Groups
"Google Picasa Web Albums API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-picasa-data-api/-/hPH8XL9cjKIJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-picasa-data-api?hl=en.