>
> Can you please give some pointer to how

to

use local source to represent the new avatar?


My application (a desktop application) allows a user to select a file on the
hard drive and upload it to Twitter.  This application also displays the
users current Twitter avatar.  When the application uploads a new avatar and
receives the 200 status back, instead of querying Twitter for the new
avatar, I simply use the one on disk and display it to the user.
This isn't ideal, I'd rather re-query Twitter and grab the image from them
to be sure, but as we've described that's not always working
correctly/quickly.

Is there any way to supply my

own

URL of the image which is hosted on a third party server?


not to my knowledge, or anywhere I can find on the API.  I would think this
would be a bad idea.

 If web interface also uses the same API calls, how is

this

possible? Or is there a difference in the upload policy based on the

client

software in use?


I don't know that the web interface necessarily uses the API.  It's possible
that the API for Twitter is not the same as Twitter the application itself.
 Either way, the API is what we have to use

_ct



On Thu, Apr 2, 2009 at 3:41 AM, Raghu Prasad <[email protected]>wrote:

>
>
> On Apr 1, 5:49 pm, Clint Shryock <[email protected]> wrote:
> > The lag wasn't nearly as noticeable when the update_profile_image was
> first
> > offered, but has since as you noted become considerable.
> > As a work around my app, which updates profile images from a local
> source,
> > uses the local source to represent the new avatar after I receive the
> HTTP
> > status codes that indicate the upload was successful.
>
> I am a newbie to Twitter API. Can you please give some pointer to how
> to
> use local source to represent the new avatar? As I understand, the
> method
> update_profile_image takes multipart form data and stores the image
> contained in it on Twitter's storage space. The avatar shown near the
> tweets are
> picked up from Twitter's storage only. Is there any way to supply my
> own
> URL of the image which is hosted on a third party server?
>
> Another issue which surprised me was that if I upload my profile image
> using
> my web browser, instead of using curl, the avatar is displayed near my
> tweets
> immediately. If web interface also uses the same API calls, how is
> this
> possible? Or is there a difference in the upload policy based on the
> client
> software in use?
>
> Raghu
>

Reply via email to