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: 9.0.0
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