Skip to content

Instantly share code, notes, and snippets.

@baz8080
Created April 30, 2020 15:18
Show Gist options
  • Save baz8080/8e5b00e2e3aa75040af11e110ed9e1a7 to your computer and use it in GitHub Desktop.
Save baz8080/8e5b00e2e3aa75040af11e110ed9e1a7 to your computer and use it in GitHub Desktop.
Setting ticket form ID
// Create object
let request = ZDKCreateRequest()
// Set mandatory properties
request.subject = "Hello Provider"
request.requestDescription = "Description"
// Specify which form to use
request.ticketFormId = 1234;
// Create it, ignoring the callback
ZDKRequestProvider().createRequest(request, withCallback: nil)
// Create it, where you can check if it is an error.
ZDKRequestProvider().createRequest(request) { (result, error) in
if (error != nil) {
print(error.debugDescription)
} else {
// Do something with callback
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment