ex_golos v0.11.1 Golos.TagApi

Contains all functions to call Golos database_api methods

Link to this section Summary

Functions

Get discussions by the wanted metric. Accepts a metric atom and a map with a following query params: %{tag: String.t, limit: integer} ContentResult has the same shape as a result returned by get_content. Example result:

[ContentResult, ContentResult, ...]

If start_permlink is empty then only before_date will be considered. If both are specified the earlier of the two metrics will be used. before_date format is: 2017-02-07T14:34:11

Link to this section Functions

Link to this function call(method, params)
Link to this function get_discussions_by(metric, query)
get_discussions_by(atom(), map()) :: {:ok, [map()]} | {:error, any()}

Get discussions by the wanted metric. Accepts a metric atom and a map with a following query params: %{tag: String.t, limit: integer} ContentResult has the same shape as a result returned by get_content. Example result:

[ContentResult, ContentResult, ...]
Link to this function get_discussions_by_author_before_date(author, start_permlink, before_date, limit)
get_discussions_by_author_before_date(
  String.t(),
  String.t(),
  NaiveDateTime.t(),
  integer()
) :: {:ok, map()} | {:error, any()}

If start_permlink is empty then only before_date will be considered. If both are specified the earlier of the two metrics will be used. before_date format is: 2017-02-07T14:34:11.

Example response:

ContentResult has the same shape as a result returned by get_content.
Example result:

[ContentResult, ContentResult, …]