ServiceNowExtension
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
iOS 10.0+ / macOS 10.12+ / tvOS 10.0+ / watchOS 3.0+ Xcode 10.1+ Swift 4.2+
Installation
ServiceNowExtension is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ServiceNowExtension'
Usage
Import ServiceNowExtension in your view controller then Initiate SNManager Instance with required details.
domain = "Servicenow domain url"
userName = "Service now account userid"
password = "Service now password"
var snManager = SNManager(domain, userName: userName, password: password)
Once the instance created you can raise your ticket through createIncidentTicket() method and pass the required parameters
func createATicket() {
let subject = "Ticket Subject"
let priority = "Ticket Priority" [High/Medium/Low]
let description = "Decribe the issue"
let incidentImage = "Your image"
snManager.createIncidentTicket(subject, priority: priority, description: description, image: incidentImage) { (status, message) in
}
}
Author
Sarath Raveendran
License
ServiceNowExtension is available under the MIT license. See the LICENSE file for more info.