With something volatile like a URL you shouldn't make any assumptions about
its length,  -- and in this case, nor should you try to derive any meaning
out of the various components of the URL path. There is technically no
maximum length to a URL, so for storage purposes I would reserve yourself
plenty of characters.

Speculation: the numeric portion of the path appears to be epoch time in
seconds, equivalent of: "Sun May 02 16:17:07 -0700 2010 "

We do offer an API method to determine the avatar for a user by user_id,
however you cannot use them to directly render the image -- only to resolve
a user_id to a avatar URL string. See
http://dev.twitter.com/doc/get/users/profile_image/:screen_name

@episod <http://twitter.com/episod> - Taylor Singletary


On Thu, May 12, 2011 at 3:48 AM, yama <eternalsun...@gmail.com> wrote:

> Hi guys,
>
> I'm going to store profile image URL to DB.
> This is my image.
> "http://a0.twimg.com/profile_images/1272842227/android-
> wallpaper4_2560x1600.png"
> But, what is the max length of it?
> and what does the number,  1272842227 mean?
>
> Also if possible, I'd like to get profile image by userID,
> like, on facebook i can get image by "http://graph.facebook.com/USERID/
> picture".
> Is it possible on Twitter also?
>
> Thank you,
> Yama
>
> --
> Twitter developer documentation and resources: https://dev.twitter.com/doc
> API updates via Twitter: https://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> https://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> https://groups.google.com/forum/#!forum/twitter-development-talk
>

-- 
Twitter developer documentation and resources: https://dev.twitter.com/doc
API updates via Twitter: https://twitter.com/twitterapi
Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
https://groups.google.com/forum/#!forum/twitter-development-talk

Reply via email to