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
Get trending tags
Link to this section 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
.
Example response:
ContentResult has the same shape as a result returned by get_content.
Example result:
[ContentResult, ContentResult, …]
Get trending tags
Example result:
[
%{"comments" => 386, "id" => "5.4.29", "net_votes" => 16361,
"tag" => "golos", "top_posts" => 448,
"total_children_rshares2" => "263770002351940021381162037540",
"total_payout" => "1210679.260 GBG"},
%{"comments" => 0, "id" => "5.4.6338", "net_votes" => 59,
"tag" => "golos-io", "top_posts" => 1,
"total_children_rshares2" => "7597368466598778563409",
"total_payout" => "1533.724 GBG"},
%{"comments" => 1, "id" => "5.4.741", "net_votes" => 39,
"tag" => "golos-soft", "top_posts" => 2,
"total_children_rshares2" => "87745768291122276983586401",
"total_payout" => "12.812 GBG"},
...]