Created
April 30, 2020 15:18
-
-
Save baz8080/8e5b00e2e3aa75040af11e110ed9e1a7 to your computer and use it in GitHub Desktop.
Setting ticket form ID
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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