require "twitter.lib.php";
$username = "trembl";
$password = "••••••••";
$twitter = new Twitter($username, $password);
$options = array(
"profile_background_color" => "fff",
"profile_text_color" => "fff",
"profile_link_color" => "fff",
"profile_sidebar_fill_color" => "fff",
"profile_sidebar_border_color" => "fff"
);
$update_response = $twitter->updateProfileColors($options);
print_r($update_response);
Nice, isn’t it?
curl -F ‘image=@test.png;type=image/png’ -H ‘Expect:’ -u username:password http://twitter.com/account/update_profile_background_image.xml
hmm nice.
the logical thing to do.
instead of text messages, send images…
update: turning tiling on.
curl -F ‘image=@test.png;type=image/png’ –F ’tile=true’ -H ‘Expect:’ -u username:password http://twitter.com/account/update_profile_background_image.xml
second -F flag creates second form field.
update: same applies to user profile image
curl -F ‘image=@icon.png;type=image/png’ -H ‘Expect:’ -u username:password http://twitter.com/account/update_profile_image.xml
update: absolute image paths
curl -F ‘image=@/Users/x/Desktop/icon.png;type=image/png’ -H ‘Expect:’ -u username:password http://twitter.com/account/update_profile_image.xml
there seems to be a bug in the max shell object, preventing cd to work. it also does not like relative paths (~)…