Make sure that you have Java 1.8 installed on your system.
The application is an executable jar which can be run as follows:
java -jar ticket-connector-0.1.jar -u <user_name> -p <password> -ci <client_Id> -cs <client_secret> -d <zendesk_domain>
Substitute the actual values for user_name, password etc. in the above command.
3. After succesful execution, a CSV file named TicketInfo.csv will be generated in the same directory where the application is run.
The application first connects to Zendesk using the user credentials and the Client ID and Client Secret provided via the command line.
It then obtains an OAuth token using the Password Grant Type flow as described in https://support.zendesk.com/hc/en-us/articles/203663836-Using-OAuth-authentication-with-your-application
It calls the Zendesk API using this OAuth token, gets the relevant ticket information and then writes it into a CSV file.
- The application is a standalone, executable
jar
and has been primarily developed using Java. - Zendesk Java client to connect to Zendesk.
- Unirest Java library to call the Zendesk API.
- JCommander to parse the command line arguments.