ElMeduza v0.1.5 ElMeduza View Source

Module for fetching different kind of information from meduza.io api

Link to this section Summary

Functions

Returns a number of likes for vk, tw, ok, fb

All available articles and other items of the site

Fetch informers

Fetch page with posts for one of the following categories

Fetch single posting by path

Featured posts?

Fetch stocks info for usd, eur, brent, etc

Link to this section Functions

Link to this function collection_stats(collections) View Source
collection_stats([String.t()]) :: {:ok, map()} | {:error, any()}

Returns a number of likes for vk, tw, ok, fb

As well as a number of comments(reactions)

Accepts a list of paths one or many

Examples

ElMeduza.collection_stats(["feature/2017/10/13/zriteli-svoyu-otsenku-vyskazali"])
Link to this function index() View Source
index() :: {:ok, map()} | {:error, any()}

All available articles and other items of the site

Examples

ElMeduza.index
Link to this function informers() View Source
informers() :: {:ok, map()} | {:error, any()}

Fetch informers.

Examples

ElMeduza.informers
Link to this function search(post_type, params \\ []) View Source
search(String.t(), page: integer(), per_page: integer(), locale: String.t()) ::
  {:ok, map()} |
  {:error, any()}

Fetch page with posts for one of the following categories:

arguments:

  1. news, articles, shapito, razbor, games
  2. list of options [page: 0, per_page: 24, locale: β€œen”]

Examples

ElMeduza.search("news")
Link to this function single_post(path) View Source
single_post(String.t()) :: {:ok, map()} | {:error, any()}

Fetch single posting by path

Examples

ElMeduza.single_post("feature/2017/10/13/zriteli-svoyu-otsenku-vyskazali")
Link to this function specials() View Source
specials() :: {:ok, map()} | {:error, any()}

Featured posts?

Examples

ElMeduza.specials
Link to this function stocks() View Source
stocks() :: {:ok, map()} | {:error, any()}

Fetch stocks info for usd, eur, brent, etc:

Examples

ElMeduza.stocks