Zuppler Elixir Client v0.0.12 Zuppler.Channel

Zuppler Channel Wrapper

Summary

Functions

Get info about channel and integrations 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, variables \\ nil)
find(String.t, nil | 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 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)