HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

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)

What’s Next
Did this page help you?