API 1.1 - Is there any way to change "pic.twitter.com/xxx" for a short url?


#1

Am using the twitteroauth library to post tweets with images (update_with_media) and everything is ok! Images from URL and with this method:

$image = file_get_contents($url);
$status = 'blah blah';
$params = array(
    	'media[]' => $image,
    	'status'  => $status
  	);

When the post is success the tweet show “Blah blah” pic.twitter.com/xxxx, I want to know is posible to change the las url “pic.twitter.com/xxx” for a new short url i.e. j.mp/1234. (I use the bitly API to do this). Thanks.