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

setMediaType

Defines a session's media type in Optimizely Campaign.

Some methods use the media type defined here.

Type: void

Parameters

NameTypeValue
sessionIdStringID of the session
mediaTypeStringEMAIL or SMS

Return values

  • Code structure

    void setMediaType(String sessionId, String mediaType)