configuring twitter module to work with other url shortening services

iteego - June 19, 2009 - 16:29
Project:Twitter
Version:6.x-2.6
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I'm curious if its possible to change the default url shrinking service in the module code? I'd like to use ow.ly because of the statistics they offer on HootSuite. Thanks. Kevin

#1

Aart - October 14, 2009 - 13:05
Version:6.x-2.5» 6.x-2.6

Same here. I'd like to know if this is possible as well.

#2

lort - November 30, 2009 - 19:36

@twitter.module

line 150: $response = drupal_http_request("http://tinyurl.com/api-create.php?url=" . $url);

you'll just have to replace that api url with the one you are interested in.
like if you wish to go for bit.ly then just take a look at their api documentation and act accordingly.

#3

lort - December 1, 2009 - 13:26

careless reader am i :)
ow.ly api is still under development from what i've read. there's a request form on their site under the Developer API link where you can sign up and be informed when it's ready.

 
 

Drupal is a registered trademark of Dries Buytaert.