Skip to content
/ exhn Public

Streaming Hacker News API client

License

Notifications You must be signed in to change notification settings

andre1sk/exhn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exhn

Streaming Hacker News API client

Build Status

Install

In your mix.exs:

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

defp deps do
  [
    { :exhn, "~> 1.0.0" }
  ]
end

Then run mix deps.get.

Usage

For information about the endpoints themselves please refer to the Hacker News API docs.

Static endpoints

Static endpoints are available under ExHN.

ExHN.item(id)

Gets the item with the specified id.

ExHN.user(name)

Gets the item with the specified name.

Live endpoints

Live endpoints are available under ExHN.Live. These return an infinite Stream of data. The following endpoints are available:

  • ExHN.max_item
  • ExHN.updates
  • ExHN.new_stories
  • ExHN.top_stories
  • ExHN.best_stories
  • ExHN.ask_stories
  • ExHN.show_stories
  • ExHN.job_stories

License

MIT © Juan Soto

About

Streaming Hacker News API client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages