I've been looking for an API for google photos that will allow me to create an app in android to push up my pictures to a specific album in the cloud. So far, I've seen two possible solutions:
1) the google drive api - I actually developed a POC last night and got it mostly working but unfortunately I can't specify a a google photos album to send my image to.
2) the old picasaweb api - this one looks more promising but I can't get past validating my credentials. Here's a google article describing how to set this up, but the setUserCredentials() method on the PicasawebService object is no longer functional (https://developers.google.com/picasa-web/docs/3.0/developers_guide_java)
I'd like to keep pursuing option 2 a bit but I can't find a method on that PicasawebService object that will allow me to make subsequent calls using a logged in user account on my phone (either by google sign-in or the AccountPicker intent). I thought maybe the setUserToken() method would work and I tried plugging in the tokens I've received from both of the above login methods. I am requesting this in my OAuth2 scope "oauth2:profile email https://picasaweb.google.com/data/" which does indeed prompt me and ask if I want to give access to my photos, I just can't figure out how to tie the logged in user account to PicasawebService calls.
if I hit this URL (this URL is in the article I linked above) from a browser where I'm logged into my google account, I see everything I'd expect to see: https://picasaweb.google.com/data/feed/api/user/username?kind=album so I know that the api is still functional, I just can't figure out how to push up my valid credentials in my android app.
any suggestions would be greatly appreciated TIA