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

ShortenWithBitly

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 http://api.bitly.com/v3 will be used. That is what is recommended.

public System.String ShortenWithBitly(String)


Returns

Shortened URL

Parameters

NameDescriptionType
url URL to shorten System.String

Connect with Crownpeak