func getVizeImageAnalysis(image: UIImage) {
let headers: HTTPHeaders = [
“Authorization”: “JWT (jwtToken)”,
“Content-Type”: “application/x-www-form-urlencoded”,
“Accept”: “text/plain”
]
let url = “https://cl-api.vize.ai/(taskID)”

    manager.upload(multipartFormData: { multiPartData in
        // Add image
        if let imageData = UIImageJPEGRepresentation(image, 0.8)  {
            multiPartData.append(imageData, withName: "image", fileName: "pickedImage", mimeType: "image/jpeg")
        }

    }, to: url, method: .post, headers: headers, encodingCompletion: {
        encodingResult in
        switch encodingResult {
        case .success(let request, _, _):
            request.responseJSON{ response in
            debugPrint(response)
        }
        case .failure(let encodingError):
            print(encodingError)
        }
    })
}<span style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" data-mce-type="bookmark" class="mce_SELRES_start"></span>