List TicketsΒΆ

List all tickets of your account.

URL:

http://www.ihelpdesk.com/desktop/api/{SITE_NAME}/tickets

Suppose your iHelpdesk site name is acme, with user name being joe@acme.com and password being joe.

curl -u joe@acme.com:joe http://www.ihelpdesk.com/desktop/api/acme/tickets

Sample result

<tickets total="2">
  <ticket>
    <id>1322590922573033</id>
    <creator>1321279825848036</creator>
    <subject>test ticket 1 with attachment</subject>
    <priority>2</priority>
    <status>
      <id>0</id>
      <display>open</display>
    </status>
    <category>
      <id>1321279825715013</id>
      <name>Internet</name>
    </category>
    <create-date class="sql-timestamp">2011-11-29 13:22:02.0</create-date>
    <last-modified class="sql-timestamp">2011-11-29 13:22:40.0</last-modified>
    <last-modified-by>1321279825848036</last-modified-by>
    <last-comment-by>1321279825848036</last-comment-by>
    <time-spend>0</time-spend>
    <type>
      <id>0</id>
    </type>
    <linked-problem-id>-1</linked-problem-id>
    <hasAttaches>1</hasAttaches>
  </ticket>
  <ticket>
    <id>1322590987765037</id>
    <creator>1321279825848036</creator>
    <subject>How to get started?</subject>
    <priority>0</priority>
    <status>
      <id>0</id>
      <display>open</display>
    </status>
    <create-date class="sql-timestamp">2011-11-29 13:23:07.0</create-date>
    <last-modified class="sql-timestamp">2011-11-29 13:23:07.0</last-modified>
    <last-modified-by>1321279825848036</last-modified-by>
    <last-comment-by>1321279825848036</last-comment-by>
    <time-spend>0</time-spend>
    <type>
      <id>0</id>
    </type>
    <linked-problem-id>-1</linked-problem-id>
    <hasAttaches>0</hasAttaches>
  </ticket>
</tickets>