Zuppler Elixir Client v0.0.13 Zuppler.Channel

Zuppler Channel Wrapper

Summary

Functions

Get info about channel and integrations by query Ex

Get info about channel and integrations by named query with variables Ex

Types

t()
t() :: %Zuppler.Channel{disabled: boolean, integrations: [Integration.t], login_required: boolean, name: String.t, permalink: String.t, searchable: boolean, url: String.t}

Functions

find(query)
find(String.t) ::
  {:ok, %Zuppler.Channel{disabled: term, integrations: term, login_required: term, name: term, permalink: term, searchable: term, url: term}} |
  {:error, String.t}

Get info about channel and integrations by query Ex:

query = “””

{
  channel(id: 1) {
    name
    permalink
    url
    disabled
    searchable
    integrations(remote_id: "gigi"){
      restaurant_location_id
      restaurant_id
    }
  }
}

“””

Zuppler.Channel.find(query)

find(query, variables)
find(String.t, map) ::
  {:ok, %Zuppler.Channel{disabled: term, integrations: term, login_required: term, name: term, permalink: term, searchable: term, url: term}} |
  {:error, String.t}

Get info about channel and integrations by named query with variables Ex:

query = “””

query ChannelWithIntegration($id: ID, $remote_id: String) {
    channel(id: $id) {
      name
      permalink
      url
      disabled
      searchable
      integrations(remote_id: $remote_id){
        restaurant_location_id
        restaurant_id
      }
    }
}

“”” variables = %{id: 121, remote_id: “milwakeeplace”}

Zuppler.Channel.find(query, variables)