HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityLog In

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)
    

What’s Next
Did this page help you?