Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket

SessionWebservice

Control the session handling (login, logout etc.) for all web services in Optimizely Campaign.

MethodDescription
getLocaleQueries the locale of a session.
getMediaTypeQueries the media type of a session.
loginStarts the login for a session in the localization version de.
logoutEnds a session.
setLocaleDefines the locale for a session.
setMediaTypeDefines the media type for a session.

Locale-based information

Some methods (mostly reporting functions) require parameters for localization. The localization version for the current session can be set active by using the setLocale method. The default value is de for German.

Media type

Some API methods work differently on different media types (such as EMAILor SMS). Use the setMediaType method to switch between media types. Default is EMAIL.