Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

getMediaType

Queries the media type of a session in Optimizely Campaign.

Type: String

Parameters

NameTypeValue
sessionIdStringID of the session

Return values

Media type of the session: EMAIL or SMS

Code structure

String getMediaType(String sessionId)

Next