Tanegashima

Elixir wrapper for Pushbullet.

Installation

Available in Hex.

The package can be installed as:

Usage

Copy your pushbullet-Access-Token from here and paste it in config/config.exs in your project. config/config_template.exs will be helpful.

config :tanegashima,
    access_token: "abc.defg123456789"

In mix.exs in your project,

def application do
     [applications: [:tanegashima]]
end

Examples

Post a push

You will get the notification on your Android or iPhone which installed Pushbullet apps.

iex> Tanegashima.Push.post body: "hello from Tanegashima!"
{:ok, %Tanegashima.Push{"active" => true, "body" => "hello from Tanegashima!", ...}

Get a push-notification from websocket

You can implement callbacks of websocket-tickle with use Tanegashima.Websocket in your module like Tanegashima.Example.Websocket.

iex> Tanegashima.Example.Websocket.start