Sample to view tickets from freshdesk.

You can also get "json" format response by replacing the .xml to .json in the url and in the Accept Header.