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'
}
}
};
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