URL Shortening
AddThis will automatically shorten links shared to Twitter if they are longer than 40 characters. We shorten with bit.ly by default. You can customize this with your own bit.ly account to get bit.ly analytics, or you can shorten with awe.sm instead (account required).
Shortening With Bit.ly
To shorten URLs with your bit.ly account, you need to provide us with your bit.ly username and API Key which you can retrieve from http://bit.ly/a/account. Then add the following code to the addthis_share configuration object on your page:
url_transforms : {
shorten: {
twitter: 'bitly'
}
},
shorteners : {
bitly : {
login: 'your_username',
apiKey: 'R_123456...'
}
}
Shortening With Your Awe.sm Account
To shorten URLs with your Awe.sm account you need to provide us with your Account API Key which you can retrieve from http://create.awe.sm/home. Select your account name from the “settings” pull down menu in the upper right hand corner of the page. The Account API Key is a long hexadecimal string, your awe.sm Sharer ID will not work here. Please note that you need to have an awe.sm account to use this feature.
Then add the following code to the addthis_share configuration object on your page:
url_transforms : {
shorten: {
twitter: 'awesm'
}
},
shorteners : {
awesm : {
key: '5a8f...'
}
}