Skip to content

massn/Tanegashima

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tanegashima

Elixir wrapper for Pushbullet.

Installation

Available in Hex.

The package can be installed as:

  • Add tanegashima to your list of dependencies in mix.exs:

    def deps do
      [{:tanegashima, "~> 0.0.11"}]
    end
    

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

About

Elixir wrapper for Pushbullet.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages