Documentation > CMS Template API Library > Util > ShortenWithBitly(String,String)
ShortenWithBitly
Returns a shortened URL using bitly shortening service Bitly connectors must have a username and password. The Server is optional. Leave it blank and http://api.bitly.com/v3 will be used. That is what is recommended.
public System.String ShortenWithBitly(String,String)
Returns
Shortened URL
Parameters
| Name | Description | Type |
|---|---|---|
| connectorName | Name connector on connector configuration screen that specifies which bitly account to use | System.String |
| url | URL to shorten | System.String |