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

Daniel Jalkut <[email protected]>
Newsgroups gmane.comp.web.blogger.api
Message-ID <[email protected]>
Thanks, Brett. I ended up shipping an update with this assumption in place 
(stripping only non-numeric characters from the user ID to get the "real" 
ID for Picasa), and now I am running into a problem now with some of my 
users whose user ID is reported without any "g" or any other character 
around a numeric string. In that case I am using the numeric string 
verbatim as the user ID and Picasa reports an error:

"Invalid length for obfuscated ID: [the ID]"

Clearly I need to do something to massage the value into a usable string, 
but I have no idea what to do. Accepting that you can't make any promises 
about internal behavior, do you have any advise for how I might reliably 
get a user ID that is predictably usable with the Picasa API?

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] 
> <javascript:>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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.