Re: Can clients count on blogUserInfos.userId having a "g" prefix?

"'Brett Morgan' via Blogger Developer Group" <[email protected]>
Newsgroups gmane.comp.web.blogger.api
Message-ID <CAAFdGSd6u8D0mNNHPeZ7tcYyb-Q4eKyMTNcXjdeVoRorauwDtg@mail.gmail.com>
Hi Daniel,

I checked in with our engineering team, and the word is as follows. The
user ID provided by Blogger is not the ID the user needs for Picasa.
The best is to obtain the user ID directly from Picasa:

   - first call https://picasaweb.google.com/data/feed/api/user/{email
   address} and extract the user ID returned
   - then call
   https://picasaweb.google.com/data/feed/api/user/{picasaUserID}/albumid/{bloggerAlbumKey}

hth,

brett

On Mon, Apr 3, 2017 at 11:32 AM Daniel Jalkut <[email protected]> wrote:

> Hmm, specifically the user ID reported by Google's API is 20 characters
> long whereas most numeric IDs I gather by stripping a "g" prefix are 21
> characters. It seems that a subset of Google users have a user ID conveyed
> by Blogger that is considered too short to be a user ID by Picasa.
>
> Daniel
>
> On Tuesday, February 28, 2017 at 10:46:07 PM UTC-5, Brett Morgan wrote:
>
> Hey Daniel,
>
> The details you are looking at are a specific internal implementation, and
> always open to change. Something I've learned during my years at Google is
> that change is the only constant.
>
> So yeah, no. I'm not willing to make any explicit guarantees about the
> future stability of an internal implementation. It will change, just a
> question of when. Thanks!
>
> On Mon, Feb 27, 2017 at 10:42 AM Daniel Jalkut <[email protected]> wrote:
>
> I'm using the blogUserInfos struct as explorable here:
>
>
> https://developers.google.com/apis-explorer/#p/blogger/v3/blogger.blogUserInfos.get
>
> I'm determining the user ID and photo album ID for a blog, so I can upload
> images on the user's behalf from my blogging app.
>
> The userId field in my tests comes back with something like:
>
> "userId": "g840528510601118361226",
>
> But when I go to request an album from Picasa, it seems to want only the
> portion specified after the "g", for example to access a specific album:
>
>
> https://picasaweb.google.com/data/feed/api/user/840528510601118361226/albumid/.
> ..
>
> It seems like the numeric portion of the user ID is the only meaningful
> part to Picasa's API Is the g supposed to be some kind of namespacing
> marker? Will I ever get a userId back that doesn't match this format?
>
> Thanks for your help,
> Daniel
>
> --
> You received this message because you are subscribed to the Google Groups
> "Blogger Developer Group" 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 https://groups.google.com/group/bloggerdev.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Blogger Developer Group" 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 https://groups.google.com/group/bloggerdev.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" 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 https://groups.google.com/group/bloggerdev.
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.