Click or drag to resize
URLShortenerHelperShortenURLsInTextInternal Method
Shortens all URLs in provided text. Returns the same text with all URLs shortened by the specified shortener. If shortener is URLShortenerTypeEnum.None, original inputText is returned.

Namespace: CMS.SocialMarketing
Assembly: CMS.SocialMarketing (in CMS.SocialMarketing.dll) Version: 9.0.0
Syntax
C#
protected virtual string ShortenURLsInTextInternal(
	string inputText,
	URLShortenerTypeEnum shortener,
	SiteInfoIdentifier siteIdentifier
)

Parameters

inputText
Type: SystemString
Input text
shortener
Type: CMS.SocialMarketingURLShortenerTypeEnum
Shortener of your choice
siteIdentifier
Type: CMS.DataEngineSiteInfoIdentifier
Site name used to get URLShortener settings, since they are site-specific.

Return Value

Type: String
See Also