hacker_news_client v0.1.1 HackerNewsClient

API client for Hacker News API For more information checkout the project at https://github.com/nevadajames/elixir_hacker_news

Link to this section Summary

Functions

Takes story id as string and returns JSON string

Returns up to 100 stories of the following types

Returns ids of stories with given type as list of integers Available types are

Link to this section Functions

Link to this function

get_item(item_id)
get_item(String.t()) :: String.t()

Takes story id as string and returns JSON string

Link to this function

stories(type)
stories(atom()) :: list()

Returns up to 100 stories of the following types:

  • top
  • best
  • new
  • job
  • ask
  • show
Link to this function

story_ids(type)
story_ids(atom()) :: list()

Returns ids of stories with given type as list of integers Available types are:

  • top
  • best
  • new
  • job
  • ask
  • show