You can integrate this library to your application so that your app users can send support request directly from within the application.
By request there are now 2 versions of the lib, one with JSON lib files included, and one without to avoid conflicts with versions of the JSON framework already present in projects.
Use ZendeskDropboxNoJsonLib if you are providing your own version of the JSON framework.
-
Add ZendeskDropboxLib folder and contents to your project.
-
Define a key 'ZDURL' in your application's plist with your Zendesk URL as value, e.g. mysite.zendesk.com.
-
(Optional) specify the tag for tickets (the default is dropbox) In Info.plist add the key "ZDTAG" and put a tag . E.g. "iphone"
-
Implement a ticket input form, the sample code uses a
UITableView
to implement a Mail-like interface for ticket input. Please refer toFormViewController.m
for details. -
instantiate the dropbox class:
ZendeskDropbox *dropbox = [[ZendeskDropbox alloc] initWithDelegate:self];
-
Submit the request:
[dropbox submitWithEmail:@"Email..." subject:@"Subject" andDescription:@"Description..."];
-
(Optional) Implement the delegate methods to handle the response. Please refer to ZendeskDropbox.h for details
-
Switch all schemes to release target
-
Build the target 'ZendeskiPhoneSimulator' against an iPhone simulator
-
Build the target 'ZendeskiPhone' against an IOS Device (does not have to be connected)
-
Build the target 'libZendeskDropbox' against an IOS Device (does not have to be connected)
-
The combined lib can then be found in the relevant build directory, in Xcode 4.3.2 this can be found at:
/Users/{user}/Developer/Xcode/DerivedData/ZendeskDropboxIOS-{...}/Build/Products/libZendeskDropbox/libZendeskDropbox.a
Copyright 2013 Zendesk
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.