1. I'm still looking into your CORS issues.

2. If you create an empty album in the API, Google+ won't show empty
albums, which could be the problem you're seeing. Try uploading a photo
there and see if it shows up.
On May 7, 2013 4:39 PM, "John Gilmore" <[email protected]> wrote:

> We would appreciate some feedback if possible.
>
> 1) We use jQuery ajax, trying to insert, update and/or delete albums
>
> Example w/ DELETE:
> - Headers are correctly set, according to the documentation
> - The Response:
> XMLHttpRequest cannot load
> https://picasaweb.google.com/data/entry/api/user/USER_ID/albumid/<https://picasaweb.google.com/data/entry/api/user/105057860509692553019/albumid/5873583138422318081>
> ALBUM_ID. Origin https://www.D <https://www.unfoldingart.com/>OMAIN.comis not 
> allowed by Access-Control-Allow-Origin.
>
> We get the same message as above despite the fact that the origin is
> correct and the oAuth 2 is generated for the same domain/origin.
>
> We've tried it with xhr and jQuery. The results are identical.
>
>                 $.ajax({
>                         url         :
> https://picasaweb.google.com/data/entry/api/user/USER_ID/albumid/<https://picasaweb.google.com/data/entry/api/user/105057860509692553019/albumid/5873583138422318081>ALBUM_ID,
> //retrieved from $.getJSON response. GET w/ CORSE fails, obviously
>                         type        : 'DELETE',
>                         contentType :  "application/json", // accepted by
> the server
>                         crossDomain : true  ,                  // Insensitive,
> can be missing, can be false
>                         beforeSend  : function(request, opts)
>                                         {
>
>
> request.setRequestHeader("Authorization"          ,'Bearer '+ strToken   );
> //works w/ and w/o 'Bearer', leading to the same result
>
> request.setRequestHeader('GData-Version'          , '2'       );
>
> request.setRequestHeader('If-Match'               , '*'       );
>                                         },
>                         xhrFields: {
>                                         withCredentials: false  // Insensitive
> to true/false or missing
>                                       }
>                         }).
>                         done(function(pData_XML)
>                         {
>                          console.log("Success");
>                         }).
>                         fail(function(pData)
>                         {
>                             console.log("Failure");
>                         });
>
> ----------------
> 2) Creation of albums in Google+
> - If we create a public album directly (in Google+):
>
>    - Can be seen in Google+
>    - Can retrieve it in our app
>
> - If we create an album based on the provided documentation code (
> https://developers.google.com/picasa-web/docs/2.0/developers_guide_protocol#AddAlbums)
>  and
> using the oAuth Playground (https://developers.google.com/oauthplayground/
> )
>
>    - The public album is created according to the Playground response
>    - It cannot be seen in Google+
>    - It can be properly retrieved in our app.
>
>
> Is there a mistake we are making ?
>
> Many thanks,
> John
>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Google Picasa Web Albums API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to
> [email protected].
> Visit this group at
> http://groups.google.com/group/google-picasa-data-api?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-picasa-data-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to