Documentation > CMS Template API Library > Util > ShortenWithBitly(String)


Returns a shortened URL using bitly shortening service Uses first Bitly account from Connectors configuration screen that it finds. Useful if only one account is setup. Use the overload to specify a connector if there is more than one. Bitly connectors must have a username and password. The Server is optional. Leave it blank and will be used. That is what is recommended.

public System.String ShortenWithBitly(String)


Shortened URL


url URL to shorten System.String

Connect with Crownpeak