update_profile_background_image API call. Again

3 views
Skip to first unread message

Voituk Vadim

unread,
May 15, 2009, 4:38:40 AM5/15/09
to Twitter Development Talk
Hi I`m getting strange errors on using update_profile_background_image
API call (see curl dump below)

The uploaded image size is 10Kb.
Also i`ve tried to use
mqpro_glowdotsGray.br.jpg;type=image/jpeg
and
mqpro_glowdotsGray.br.jpg;type=image/jpg
notations and go the same result.

Using the same code for update_profile_image call works perfectly.

What i`m doing wrong? Or is there any active issues related to this
API?

curl -v -F 'image=@/path/to/image/twallpapers/backgrounds/thumbs/
mqpro_glowdotsGray.br.jpg' --header 'Expect:' -u mylogin:mypassword
http://twitter.com/account/update_profile_background_image.xml
* About to connect() to twitter.com port 80
* Trying 128.121.146.100... connected
* Connected to twitter.com (128.121.146.100) port 80
* Server auth using Basic with user 'mylogin'
> POST /account/update_profile_background_image.xml HTTP/1.1
> Authorization: Basic [hidden]
> User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> Host: twitter.com
> Accept: */*
> Content-Length: 10662
> Content-Type: multipart/form-data; boundary=----------------------------5a35eee9279a
>
< HTTP/1.1 403 Forbidden
< Date: Fri, 15 May 2009 08:32:17 GMT
< Server: hi
< Last-Modified: Fri, 15 May 2009 08:32:17 GMT
< Status: 403 Forbidden
< Pragma: no-cache
< Cache-Control: no-cache, no-store, must-revalidate, pre-check=0,
post-check=0
< Content-Type: application/xml; charset=utf-8
< Content-Length: 203
< Expires: Tue, 31 Mar 1981 05:00:00 GMT
< X-Revision: e8cdf86372da838f4cb112e826cddcd374bcee16
< X-Transaction: 1242376337-96911-6692
< Set-Cookie: lang=; path=/
< Set-Cookie:
_twitter_sess=BAh7CToJdXNlcmkE7PAFAToTcGFzc3dvcmRfdG9rZW4iLTFjZGViYWQ2Yzhm
%250ANTBhZTE5ODExNWJjMmJhNTUxNTFiZmI1NDIxNjQ6B2lkIiVhOTlhMWViNDU4%250AMTdmNzJlMjdmNzY2MTllN2JhZGRmYSIKZmxhc2hJQzonQWN0aW9uQ29udHJv
%250AbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%253D
%253D--13dd462896dfa3b13448f4535612802942248a82; domain=.twitter.com;
path=/
< Vary: Accept-Encoding
< Connection: close
<?xml version="1.0" encoding="UTF-8"?>
<hash>
<request>/account/update_profile_background_image.xml</request>
<error>There was a problem with your background image. Probably too
big.</error>
</hash>
* Closing connection #0

Patrick Burrows

unread,
May 15, 2009, 10:05:09 AM5/15/09
to twitter-deve...@googlegroups.com
Is the created_at return value of http://twitter.com/statuses/friends.format
the date that person's Twitter account was created, or the date that
friendship began?

My guess is it is when the twitter account was created. If that is so, then
is there a way to determine the date someone started following a person, or
being followed by a person?


--
Patrick Burrows
http://Categorical.ly (the Best Twitter Client Possible)
@Categorically


Doug Williams

unread,
May 15, 2009, 1:22:18 PM5/15/09
to twitter-deve...@googlegroups.com
That value is the date that the account was created as you determined. There is no way to determine programmatically when the account was followed. That is not something we expose in the API.

Thanks,
Doug
--

Doug Williams
Twitter Platform Support
http://twitter.com/dougw


Reply all
Reply to author
Forward
0 new messages