exhn v1.1.0 ExHN.Live

Interface to the live endpoints of the Hacker News API.

See the API docs for more information.

Summary

Functions

Returns a Stream of new data from the /ask_stories endpoint

Returns a Stream of new data from the /best_stories endpoint

Converts a list of item id results into a list of the items themselves

Returns a Stream of new data from the /job_stories endpoint

Returns a Stream of new data from the /max_item endpoint

Returns a Stream of new data from the /new_stories endpoint

Returns a Stream of new data from the /show_stories endpoint

Returns a Stream of new data from the /top_stories endpoint

Returns a Stream of new data from the /updates endpoint

Functions

ask_stories()
ask_stories :: Enumerable.t

Returns a Stream of new data from the /ask_stories endpoint

best_stories()
best_stories :: Enumerable.t

Returns a Stream of new data from the /best_stories endpoint

get_items(stream)

Converts a list of item id results into a list of the items themselves.

This calls ExHN.item on each id in the list and replaces it with the body of the request’ response.

Request that result in errors will be returned as nil.

job_stories()
job_stories :: Enumerable.t

Returns a Stream of new data from the /job_stories endpoint

max_item()
max_item :: Enumerable.t

Returns a Stream of new data from the /max_item endpoint

new_stories()
new_stories :: Enumerable.t

Returns a Stream of new data from the /new_stories endpoint

show_stories()
show_stories :: Enumerable.t

Returns a Stream of new data from the /show_stories endpoint

top_stories()
top_stories :: Enumerable.t

Returns a Stream of new data from the /top_stories endpoint

updates()
updates :: Enumerable.t

Returns a Stream of new data from the /updates endpoint