Elixir wrapper for Pushbullet.
The package can be installed as:
-
Add tanegashima to your list of dependencies in
mix.exs
:def deps do [{:tanegashima, "~> 0.0.11"}] end
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
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!", ...}
You can implement callbacks of websocket-tickle with use Tanegashima.Websocket
in your module like Tanegashima.Example.Websocket
.
iex> Tanegashima.Example.Websocket.start