Open maximan3000 opened 1 year ago
Would love to see this @jonagh! Would you give me a quick onboarding to the source code, and I can try to add this feature?
Ya sure. The reason I didn't do this was 1) I didn't want it for my own purposes, 2) I wanted to avoid getting write permissions, just so it was "safer". But, I totally see how putting the photos into an album could be useful for many.
auth.getCachedAccessToken()
call.name
, scopes
, and an async run(gapi)
function (see example.js and findOutOfAlbumPhotos.js in the /commands folder as examples).
The name
is simply for displaying in the commands dropdown, the scopes
is the google API permissions that are required, the user will allow these permissions when they authorize the 'app'. The run
function is what will be invoked when the user selects the command from the dropdown and clicks run.request
) - or just create your own file, or just keep all your functionality in the file you created in /commands.Hope that was somewhat helpful :)
Sorry :(
I ended up scratching my itch with another method* and have no need to code this feature for now. Thanks for detailing it for the next person that reads this!
* I wanted to see every non-albumed picture within the photos app to categorize them in new albums. Considering I never used the google photos archive feature I simply archived every albumed picture and ended up having every non-albumed picture in the main photos screen. After classifying those pictures, I de-archived everything!
At the moment Google Photos API allows creating photos and albums with API. But even with full write access you can't add photos you already own to the new album.
It would be much better to create another album that accumulates all photos you need to sort/remove. Solution: add command that creates an album and fills it with photos Pros: