ContentType
public enum ContentType : String
The MIME content types available for sending multipart requests to the Spotify Web API.
Note
The only content types currently accepted by the Spotify Web API areapplication/json
and image/jpeg
for all PUT, POST, or DELETE requests. If/when more content types become part of the API, they will be made available here.
-
Represents UTF-8 encoded JSON data. This is the format for nearly all PUT, POST, and DELETE requests to the API.
Declaration
Swift
case json = "application/json"
-
Represents Base64 encoded JPEG image data. This is the format used when uploading images to the API (e.g., when uploading a custom playlist cover image).
Declaration
Swift
case jpeg = "image/jpeg"