bitly shortener not working

cocinternetsite Mar 01, 2012 11:39AM EST

Hi,

We are trying to use bit.ly to shorten URLs but it doesn't seem to work for any button. Below is the code we are using based on the API documentation.

The page can be tested at: http://www.cityofchicago.org/city/en/sandbox/testaddthisgetrequesturl.html

Any help will be appreciated

Thanks.

var addthis_share = {
url_transforms : {shorten: { twitter: 'bitly' }},
shorteners: {
bitly: {
login: 'dpmesa',
apiKey: 'R_da4ad0180514221dbb8d544fe2be8218'
}
}
};

1 Community Answers

waytostay Mar 19, 2012 10:06AM EDT

Yse "username" instead of "login" in the addthis_share.shorteners.bitly object.

I found that AddThis actually has conflicting documentation about this:
http://support.addthis.com/customer/portal/articles/381263-addthis-client-api-#url-transforms
http://support.addthis.com/customer/portal/articles/381247-url-shortening#.T2IJRxEgdoE

and after trying out "username" on a whim, it worked.

- Paulo


Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Still need help?


General Topics

 

Developers