ex_tiqets v0.1.0 ExTiqets.Product

Elixir wrapper for the Tiqets API - Products

Link to this section Summary

Functions

Get a single product by product_id

Get all products (paged)

Get products matching search filter

Retrieves the most frequently purchased products by the API user, ordered by number of orders. The last 3 months of orders will be taken into account.

Link to this section Functions

Link to this function

get(client, id)

Get a single product by product_id

Example

iex> ExTiqets.Product.get(client, "123456")
{:ok, response}
Link to this function

get_all(client)

Get all products (paged)

Example

iex> ExTiqets.Product.get_all(client)
{:ok, response}
Link to this function

get_by_search_filter(client, options)

Get products matching search filter

Example - get products in NYC, search for Kids (400) sort by descending popularity, 20 products per page

iex> options = %{
       page_size: 20,
       city_id: 260932,
       tag_id: 400,
       sort: popularity desc
     }

iex> ExTiqets.Product.get_by_search_filter(client, options)
{:ok, response}
Link to this function

get_frequenty_purchased(client)

Retrieves the most frequently purchased products by the API user, ordered by number of orders. The last 3 months of orders will be taken into account.

Example

iex> ExTiqets.Product.get_frequenty_purchased(client)
{:ok, response}