ElMeduza v0.1.2 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

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

iex> ElMeduza.collection_stats(["promo/podpiska-na-vecherku"])
iex> ElMeduza.collection_stats(["feature/2017/10/13/zriteli-svoyu-otsenku-vyskazali", "feature/2017/10/13/uvolen-rukovoditel-tsentra-podgotovki-kosmonavtov-vozmozhnaya-prichina-uhod-izvestnyh-kosmonavtov"])

All available articles and other items of the site

Examples

iex> ElMeduza.index

Fetch informers.

Examples

iex> ElMeduza.informers
Link to this function search(post_type, params \\ []) View Source

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: “ru”]

Examples

iex> ElMeduza.search('news')
iex> ElMeduza.search('news', page: 2)
iex> ElMeduza.search('news', page: 2, locale: "en")

Fetch single posting by path

Examples

iex> ElMeduza.single_post("feature/2017/10/13/zriteli-svoyu-otsenku-vyskazali")

Featured posts?

Examples

iex> ElMeduza.specials

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

Examples

iex> ElMeduza.stocks