HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

getMimeType

Queries the MIME type of an attachment in Optimizely Campaign.

Type: String

Parameters

NameTypeValue
sessionIdStringID of the session
attachmentIdlongID of the attachment

Return values

MIME type of the attachment

Code structure

String getMimeType(String sessionId, long attachmentId)

What’s Next