[![CI Status](http://img.shields.io/travis/Help Sumo/HelpSumoSDK.svg?style=flat)](https://travis-ci.org/Help Sumo/HelpSumoSDK)
To run the example project, clone the repo, and run pod install
from the Example directory first.
HelpSumoSDK is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "HelpSumoSDK"
Import the Pod import HelpSumoSDK
Set API Key
// APIKey = “g9sfosdf8dfosdf7sfsfj3asdgh1m6”
HSConfig.setAPIKey(“g9sfosdf8dfosdf7sfsfj3asdgh1m6”)
To Add Ticket module
let frameworkBundle = Bundle(for: TicketHomeController.self)
let bundleURL = frameworkBundle.resourceURL?.AppendingPathComponent("HelpSumoSDK.bundle")
let resourceBundle = Bundle(url: bundleURL!)
let storyboard = UIStoryboard(name: "TicketList", bundle: resourceBundle)
let controller = storyboard.instantiateViewController(withIdentifier: "ticketsHomeController") as UIViewController
self.present(controller, animated: true, completion: nil)
To Add Faq module
let frameworkBundle = Bundle(for: TicketHomeController.self)
let bundleURL = frameworkBundle.resourceURL?.AppendingPathComponent( "HelpSumoSDK.bundle")
let resourceBundle = Bundle(url: bundleURL!)
let storyboard = UIStoryboard(name: "KnowledgeBase", bundle: resourceBundle)
let controller = storyboard.instantiateViewController(withIdentifier:"knowledgeBoard") as UIViewController
self.present(controller, animated: true, completion: nil)
To Add Article module
let frameworkBundle = Bundle(for: TicketHomeController.self)
let bundleURL = frameworkBundle.resourceURL?.AppendingPathComponent( "HelpSumoSDK.bundle")
let resourceBundle = Bundle(url: bundleURL!)
let storyboard = UIStoryboard(name: "Article", bundle: resourceBundle)
let controller = storyboard.instantiateViewController(withIdentifier: "articleBoard") as UIViewController
self.present(controller, animated: true, completion: nil)
Permissions Required
Add the following to info.plist file
<key>NSPhotoLibraryUsageDescription</key>
<string>To upload images related to ticket</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>helpsumo.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSTemporaryExceptionMinimumTLSVersion</key>
<string>TLSv1.1</string>
</dict>
</dict>
</dict>
Help Sumo
HelpSumoSDK is available under the MIT license. See the LICENSE file for more info.