Last active
February 3, 2016 16:49
-
-
Save jurezove/792de8ae2fb522c53581 to your computer and use it in GitHub Desktop.
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
// Code: | |
ZDKLogger.enable(true) | |
ZDKConfig.instance().initializeWithAppId(OTConstants.Services.ZendeskAppID, zendeskUrl: OTConstants.Services.ZendeskURL, clientId: OTConstants.Services.ZendeskClientID, onSuccess: { () -> Void in | |
if let user = OTKApplication.session.currentUser { | |
Zendesk.identifyUser(user) | |
ZDKHelpCenter.showHelpCenterWithNavController(self.navigationController) | |
} | |
}) { (error: NSError!) -> Void in | |
debugPrint("Error initializing ZenDesk: \(error)") | |
} | |
// Constants | |
static let ZendeskAppID = "cf6d39a0192c8b16a9622ad393101a40ca87de4d4eb7ea99" | |
static let ZendeskURL = "https://1tap.zendesk.com" | |
static let ZendeskClientID = "mobile_sdk_client_893a8fcfd5c4b79d9190" | |
// Output: | |
2016-02-03 17:47:44.817 tax[2396:433896] [DEBUG]: SDK configuration file found in local storage | |
2016-02-03 17:47:44.839 tax[2396:433896] [DEBUG]: sdkSettings: <ZDKAppSettings: 0x17044fe10> | |
2016-02-03 17:47:44.840 tax[2396:433896] [DEBUG]: Reachability Flag Status: -R -----l- networkStatusForFlags | |
2016-02-03 17:47:44.845 tax[2396:433984] [DEBUG]: About to execute login request [0x17400ef00]: https://1tap.zendesk.com/access/sdk/anonymous | |
with headers | |
{ | |
Accept = "application/json"; | |
"Client-Identifier" = "mobile_sdk_client_893a8fcfd5c4b79d9190"; | |
"Content-Type" = "application/json"; | |
"Mobile-Sdk-Identity" = "68595D5F-A136-4107-8F63-13F455459C86"; | |
"User-Agent" = "Zendesk-SDK/1.4.1.4 iOS/8.3 Env/Development"; | |
} | |
2016-02-03 17:47:45.376 tax[2396:433896] [DEBUG]: Reachability Flag Status: -R -----l- networkStatusForFlags | |
2016-02-03 17:47:45.494 tax[2396:433997] [DEBUG]: Response code [0x17400ef00]: 200 | |
2016-02-03 17:47:45.494 tax[2396:433997] [DEBUG]: Login request success [0x17400ef00]: https://1tap.zendesk.com/access/sdk/anonymous | |
2016-02-03 17:47:45.495 tax[2396:433997] [DEBUG]: Executing request after login. | |
2016-02-03 17:47:45.498 tax[2396:433997] [DEBUG]: Adding auth to request [0x17000e5f0]: https://1tap.zendesk.com/api/v2/help_center/en-gb/categories.json?per_page=1000 | |
2016-02-03 17:47:45.499 tax[2396:433997] [DEBUG]: About to execute [0x17000e5f0]: https://1tap.zendesk.com/api/v2/help_center/en-gb/categories.json?per_page=1000 | |
with headers | |
{ | |
Accept = "application/json"; | |
Authorization = "Bearer 16a013d4fa81643ae10c8b5743baf7e567d65ce56b62fe0fc3df601256a24552"; | |
"Client-Identifier" = "mobile_sdk_client_893a8fcfd5c4b79d9190"; | |
"Content-Type" = "application/json"; | |
"Mobile-Sdk-Identity" = "68595D5F-A136-4107-8F63-13F455459C86"; | |
"User-Agent" = "Zendesk-SDK/1.4.1.4 iOS/8.3 Env/Development"; | |
} | |
2016-02-03 17:47:45.730 tax[2396:433984] [DEBUG]: Response code [0x17000e5f0]: 200 | |
2016-02-03 17:47:45.730 tax[2396:433896] [DEBUG]: Request success: [0x17000e5f0]: https://1tap.zendesk.com/api/v2/help_center/en-gb/categories.json?per_page=1000 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment