Skip to content

Lechindianer/ex_pnut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExPnut

ExPnut is an Elixir wrapper for the pnut API.

Installation

If available in Hex, the package can be installed by adding ex_pnut to your list of dependencies in mix.exs:

def deps do
  [
    {:ex_pnut, "~> 0.1.0"}
  ]
end

Usage

Create config/dev.exs with the following content:

use Mix.Config

config :ex_pnut,
  user_token:
    "YOUR_USER_TOKEN"

The first step is to create a client:

client = Application.get_env(:ex_pnut, :user_token)
  |> ExPnut.Client.new()

To receive your posts:

ExPnut.Posts.Streams.me(client)

Documentation

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ex_pnut.

About

ExPnut is an Elixir wrapper for the pnut API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages