Click or drag to resize
IURLShortenerShorten Method
Shortens the given URL via an URLShortener

Namespace: CMS.SocialMarketing.URLShortening
Assembly: CMS.SocialMarketing (in CMS.SocialMarketing.dll) Version: 8.2.23
Syntax
C#
string Shorten(
	string url,
	SiteInfoIdentifier site
)

Parameters

url
Type: SystemString
URL to be shortened
site
Type: CMS.DataEngineSiteInfoIdentifier
Context to get settings for

Return Value

Type: String
Shortened URL on succes, url otherwise.
See Also