View Source Zendesk.Ticket (zendesk v0.0.1)

Link to this section Summary

Functions

Get a list of Zendesk.Tickets.

Get a specific Zendesk.Ticket.

Link to this section Functions

@spec list() :: Zendesk.Client.Operation.t()

Get a list of Zendesk.Tickets.

If passed to Zendesk.request!/1 it will return only the first results from the list. You can create a Stream to paginate over all results by calling Zendesk.stream!/1.

For instance:

 # get 400 tickets
 Zendesk.Ticket.list()
 |> Zendesk.stream!()
 |> Stream.take(400)
 |> Enum.to_list()
 |> IO.inspect()

Get a specific Zendesk.Ticket.