The way the code is written is, it uses your Refresh Token, then, behind the scenes, it obtains an access token, then uses the access token to retrieve your albums.
That is the way I understood it, but I wasn’t 100% positive.
What happens if you open the API link I provided above in a browser where you haven’t signed in to Google? Does it give you 272 albums or 284?
If I go to the API link not logged in, I get 284 albums, but that is because I used the Event Gallery tool to make those 12 albums public, so they now show and are marked as <rights type='text'>public</rights>
.
I just created album 285 and it is not listed at the API link when I’m NOT logged in. When I am logged in, I see it listed but again it says <rights type=’text’>protected</rights>.
Now, from the list of 284, if you fetch the ID of an album (<gphoto:id>) and use that in the shortcode, does your album display?
I was able to get the album ID from the Event Gallery tool, which is what the <gphoto:id>
is, so nothing changes on that front.