How do you get the ticket count for a specfic department with the API

Discussion in 'Developing, APIs and extending' started by scrupul0us, Jun 28, 2012.

  1. scrupul0us

    scrupul0us Member

    I'm using the following:

    /api/index.php?/Tickets/TicketCount/GetList&apikey='.$apiKey.'&salt='.$salt.'&signature='.$encodedSignature

    ...and that returns data for every department.

    I tried changing to:

    /api/index.php?/Tickets/TicketCount/Get?department%20id[]=1&department%20id[]=2&apikey='.$apiKey.'&salt='.$salt.'&signature='.$encodedSignature

    and I get a fusion error.

    The API docs don't have any good samples so any help would be appreciated =)
  2. Tomasz Sawicki

    Tomasz Sawicki Established Member

    There is no way to get only a specific department statistics. You must analyze the output of GET /Tickets/TicketCount to find department which interests you.
  3. Archit Agarwal

    Archit Agarwal New Member

Share This Page