Pushxer

Description

Elixir library to access the Pusher REST API.

Usage

Rest client

Define your Pushxer.Client

client = %Pushxer.Client{app_id: "app_id", app_key: "app_key", secret: "my_secret"}
client = %Pushxer.Client{endpoint: "https://my_custom_pusher:8080", app_id: "app_id", app_key: "app_key", secret: "my_secret"}
Pushxer.trigger(client, "message", %{ text: "Hello!" }, "chat-channel")

To get occupied channels:

Pushxer.channels(client)

To get users connected to a presence channel

Pushxer.users(client, "presence-demo")