Closed theQuicker1 closed 6 years ago
Thanks for letting me know! The Google Data API client library is exceptionally crappy, so I'll check whether this is actually feasible.
GData is pure crap: https://developers.google.com/gdata/articles/java_client_lib
com.google.apis
from Google yields results featuring old crap.I'm sorry but I don't have the will power, time and most importantly, any desire to crawl through this Google vomit. It's like reading 1000+ pages of crap manual, with no assurement that I will eventually reach something usable.
More crap from Google. Googling com.google.apis
returns this crap:
Finally something that looks at least slightly usable: https://developers.google.com/picasa-web/docs/3.0/developers_guide_protocol Too bad it depends on Google Data Protocol (whatever that is) which is deprecated. Also, no sample app available, no clear instructions how to add necessary libraries to Gradle.
Pure crap and waste of time. Most hilarious: The page says that Sample Code is available here: https://developers.google.com/picasa-web/code . Please feel free to find that Sample Code, I dare you.
Useless.
The only usable page is this: https://developers.google.com/android/guides/setup which also apparently includes some usable library for Drive which I should use (as opposed to com.google.apis:google-api-services-drive
which I dug out God-knows-where), but that shit works and I'm not touching that shit crap with a twenty feet stick.
I don't blame you. I'd be worried to mess with Google Drive too since it's working great. Thanks for looking into Google Photos and trying to make it work! I am sad it's not going to happen until Google gets its act together. I truly appreciate the effort and will keep recommending this app!
I apologise for the rough tone. I'll try to look into this again when I'll have more time. Maybe I will be able to find the way to make this work. Just not now - I just want to have peaceful Christmas, unspoiled by digging into that horrible mess which is Photos API :-)
It's just that I really hate that complexity typically caused by someone's else's sloppiness (Google's in this case) forces me to waste my energy by having to crawl through that API crap.
Feel free to ignore this; I have no idea if this is helpful or not: https://productforums.google.com/d/msg/photos/gSA0NL2cYos/LitqTRy4BQAJ
Thanks, that's actually quite helpful! It is using the "old and deprecated" (according to the Google guys) but apparently still very lively GData API, which apparently works. I will try to hook into this old API then.
I also found this page: https://developers.google.com/gdata/docs/directory Quoting:
GData version is still live. No replacement API.
That confirms that I should invest the time and look into that GData thing. Thanks!
An example of how incredibly idiotic Google APIs are: #55 - it is the official way of using Google Drive, which does not support listing of all files in your Drive.
I will try to hook into the old GData API.
Tried GData; doesn't work for me and rejects my username/password. Could you please try? It is actually quite easy to run the client:
gdata/java/sample/photos/lib
folder and name it run
:
#!/bin/bash
set -e -o pipefail
export GDATA_LIBS="`ls ../../../lib | awk '{ print "../../../lib/"$1 }' | tr '\n' ':'`"
export GDATA_DEPS="`ls ../../../deps | awk '{ print "../../../deps/"$1 }' | tr '\n' ':'`"
export CP="PhotosClient.jar:$GDATA_LIBS:$GDATA_DEPS"
echo $CP
java -cp $CP sample.photos.PicasawebCommandLine
mail-1.5.0-b01.jar
from http://repo1.maven.org/maven2/javax/mail/mail/1.5.0-b01/ and put it into gdata/java/deps
folder./run
Exception in thread "main" java.lang.IllegalArgumentException: Illegal username/password combination.
at sample.photos.PicasawebClient.<init>(PicasawebClient.java:69)
at sample.photos.PicasawebCommandLine.<init>(PicasawebCommandLine.java:55)
at sample.photos.PicasawebCommandLine.main(PicasawebCommandLine.java:79)
Aha, https://github.com/google/gdata-java-client/issues/451:
setUserCredentials() uses ClientLogin, which has been deprecated since April 2012 and recently disabled. You will need to use OAuth instead.
Brilliant! There is an example using OAuth1 in GData which is deprecated and doesn't work. The example app says:
Please enter your OAuth consumer key (usually your domain, visit https://www.google.com/accounts/ManageDomains to manage your OAuth parameters)
Visiting that URL redirects to https://support.google.com/a/answer/162106 which says that OAuth1 is deprecated and offers some guide, however it is not clear how to actually access the "Location: Security > Advanced settings > Authentication > Manage API client access"!
Even more hilarious: clicking on the https://admin.google.com/ G SUITE ADMINISTRATOR will just enter an infinite loop of "To verify it's you, please enter the password"!! Simply brilliant.
This is by FAR the most retarded, idiotic, disgusting experience I have ever encountered, and it comes from Google, the technology innovator. Brilliant!
I lost all interest pursuing this Google crap, I declare GData a dead end.
By accident I have clicked on https://developers.google.com/identity/protocols/googlescopes and I found out something interesting: it may be possible to access Google Photos via the Google Drive API, by using the https://www.googleapis.com/auth/drive.photos.readonly
Scope.
Google, thank you for promoting "programming by Cursing and Accident". Retarded pack of monkeys.
Nope, Google Drive just ignores the drive.photos.readonly
scope and always browses the whole Drive. I believe I've exhausted all possible ways of access Google Photos; I am exhausted myself by looking at this crap and I declare this task impossible.
Could it be? An actual example to access that pile of crap: https://github.com/tedyk/google-photos-android
To my surprise the app does work, but it returns 0 photos unless you link your Google Photos to your Google Drive. However, then the photos will also show up in your Google Drive and in fact you can use the Google Drive stream to see your photos!
Marking this issue as won't fix, but there is a workaround:
Please check out http://www.android-photo-frame.eu/faq.html for more details.
It appears that Drive no longer supports a full fledged Drive-sharing feature (at least in the United States). I can use Google Photos to view the pictures I have in Drive, but I can not add pictures to Google Photos and have them show in Drive. Since the frame is pulling from Drive, the end-goal of using the Google Photos app for uploading pictures from a phone is still not feasible.
So far, using the Google Drive app on my phone has been working well though.
I am seeing this error message in my Google Drive too. The error message is in fact a bit misleading. You still can see Photos in your Drive, it will just be attached in a different location: as a folder named Google Photos
in the My Drive
folder:
Just follow the steps as described above.
Hoorray! Since 1.13.13 the Google Photos are natively supported by PhotoCloud - there is no need to go through the Google Drive. I'll update the documentation.
Google Photos being one of the most popular personal photo repositories these days would be the perfect integration for an app like this. Probably the best thing to do would be to add/access individual albums, rather than all the pictures in Google Photos. I don't know how any of that works though.
Right now I am sharing photos from Google Photos to Google Drive. Being able to remove this step (and the extra Google Drive app on my phone) would be great!