hacker_news_client v0.2.0 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

ask_stories() deprecated
best_stories() deprecated

Takes story id returns available story information

job_stories() deprecated
new_stories() deprecated
show_stories() deprecated

Returns up to 100 stories of the following types

Returns up to specified quantity of stories of the following types

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

top_stories() deprecated

Takes user id as string and returns available information

Link to this section Functions

This function is deprecated. ask_stories/0 is deprecated use stories/1.
This function is deprecated. best_stories/0 is deprecated use stories/1.
Link to this function

item(item_id)
item(integer()) :: tuple()

Takes story id returns available story information

This function is deprecated. job_stories/0 is deprecated use stories/1.
This function is deprecated. new_stories/0 is deprecated use stories/1.
This function is deprecated. show_stories/0 is deprecated use stories/1.
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

stories(type, quantity)
stories(atom(), integer()) :: list()

Returns up to specified quantity of stories of the following types:

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

story_ids(type)
story_ids(atom()) :: [integer()]

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

  • top
  • best
  • new
  • job
  • ask
  • show
This function is deprecated. top_stories/0 is deprecated use stories/1.
Link to this function

user(user_id)
user(String.t()) :: tuple()

Takes user id as string and returns available information