Skip to content
Praveen edited this page Jan 24, 2018 · 4 revisions

WhdApi has three primary classes com.whd.WhdApi, com.whd.WhdServerObjects and com.whd.WhdAuth

com.whd.WhdAuth hold authentication details to connect to a Web Help Desk server

Methods in com.whd.WhdApi which need to interact with a Web Help Desk server will require an instance of com.whd.WhdAuth passed to it. Most methods in WhdApi are static, so you wont have to initiazlie objects of WhdApi.

com.whd.WebServerObjects object takes WhdAuth object and retreives all the WHD Request Types, Statuses, Priorities and Locations configured on the server defined in WhdAuth object.

Note: The WhdServerObjects will retreive only 20 loations by default (Since the WHD Rest API returns only 20 locations, if locations are requested without qualifiers). To overcome this the WhdServerObjects has an overloaded constructor which takes in the WhdAuth and also a List<String> locationPrefix. Now all (upto 20) locations in each location Prefix will be returned.

Clone this wiki locally