home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Graveyard
InfoService
Feature Requests
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="yoavain" data-source="post: 752407" data-attributes="member: 92067"><p>Hmm, I see your point.</p><p></p><p>Here's what I found in Twitter API documentation:</p><p><a href="http://dev.twitter.com/doc/get/users/profile_image/:screen_name" target="_blank">GET users/profile_image/:screen_name | dev.twitter.com</a></p><p></p><p>According to that, you can use the following options (for example, with the user "teammediaportal")</p><p><a href="http://api.twitter.com/1/users/profile_image/teammediaportal.xml" target="_blank">http://api.twitter.com/1/users/profile_image/teammediaportal.xml</a></p><p><a href="http://api.twitter.com/1/users/profile_image/teammediaportal.xml?size=normal" target="_blank">http://api.twitter.com/1/users/profile_image/teammediaportal.xml?size=normal</a></p><p><a href="http://api.twitter.com/1/users/profile_image/teammediaportal.xml?size=bigger" target="_blank">http://api.twitter.com/1/users/profile_image/teammediaportal.xml?size=bigger</a></p><p><a href="http://api.twitter.com/1/users/profile_image/teammediaportal.xml?size=mini" target="_blank">http://api.twitter.com/1/users/profile_image/teammediaportal.xml?size=mini</a></p><p></p><p>And here's the one they do not document:</p><p><a href="http://api.twitter.com/1/users/profile_image/teammediaportal.xml?size=original" target="_blank">http://api.twitter.com/1/users/profile_image/teammediaportal.xml?size=original</a></p><p></p><p>IMO, the one they don't document is still valid, since anything else gives back:</p><p>[HTML]<errors></p><p><error code="24">Unsupported profile image size</error></p><p></errors>[/HTML]</p><p></p><p></p><p>Anyway, we can always do this:</p><p>1. Try to get the original (biggest)</p><p>2. If we get an error return code, try to get "bigger"</p><p>3, If we get an error return code, try to get "normal"</p><p></p><p>But I'm pretty confident 1. will work great.</p><p></p><p>By the way, I got the idea from the well known HoverZoom Chrome Extension...</p><p></p><p><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" />,</p><p>Yoav</p></blockquote><p></p>
[QUOTE="yoavain, post: 752407, member: 92067"] Hmm, I see your point. Here's what I found in Twitter API documentation: [url=http://dev.twitter.com/doc/get/users/profile_image/:screen_name]GET users/profile_image/:screen_name | dev.twitter.com[/url] According to that, you can use the following options (for example, with the user "teammediaportal") [URL="http://api.twitter.com/1/users/profile_image/teammediaportal.xml"]http://api.twitter.com/1/users/profile_image/teammediaportal.xml[/URL] [URL="http://api.twitter.com/1/users/profile_image/teammediaportal.xml?size=normal"]http://api.twitter.com/1/users/profile_image/teammediaportal.xml?size=normal[/URL] [URL="http://api.twitter.com/1/users/profile_image/teammediaportal.xml?size=bigger"]http://api.twitter.com/1/users/profile_image/teammediaportal.xml?size=bigger[/URL] [URL="http://api.twitter.com/1/users/profile_image/teammediaportal.xml?size=mini"]http://api.twitter.com/1/users/profile_image/teammediaportal.xml?size=mini[/URL] And here's the one they do not document: [URL="http://api.twitter.com/1/users/profile_image/teammediaportal.xml?size=original"]http://api.twitter.com/1/users/profile_image/teammediaportal.xml?size=original[/URL] IMO, the one they don't document is still valid, since anything else gives back: [HTML]<errors> <error code="24">Unsupported profile image size</error> </errors>[/HTML] Anyway, we can always do this: 1. Try to get the original (biggest) 2. If we get an error return code, try to get "bigger" 3, If we get an error return code, try to get "normal" But I'm pretty confident 1. will work great. By the way, I got the idea from the well known HoverZoom Chrome Extension... :thx:, Yoav [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Graveyard
InfoService
Feature Requests
Contact us
RSS
Top
Bottom