ex_golos v0.11.1 Golos.FollowApi

Link to this section Summary

Functions

Get followers. Accepts account, starting follower, follow type (blog, ignore), limit of results. Returns followers in ascending alphabetical order

Get followings. Accepts account, starting following, follow type (blog, ignore), limit of results. Returns followings in ascending alphabetical order

Link to this section Functions

Link to this function call(method, params)
Link to this function get_followers(account, start_follower, follow_type, limit)
get_followers(String.t(), String.t(), String.t(), integer()) ::
  {:ok, [map()]} | {:error, any()}

Get followers. Accepts account, starting follower, follow type (blog, ignore), limit of results. Returns followers in ascending alphabetical order.

Example response:

%{"follower" => "aim", "following" => "academy",
          "id" => "8.0.21098", "what" => ["blog"]},
%{"follower" => "aleco", "following" => "academy",
          "id" => "8.0.20183", "what" => ["blog"]},
   %{...}, ...] ```
Link to this function get_following(account, start_follower, follow_type, limit)
get_following(String.t(), String.t(), String.t(), integer()) ::
  {:ok, [map()]} | {:error, any()}

Get followings. Accepts account, starting following, follow type (blog, ignore), limit of results. Returns followings in ascending alphabetical order.

Example response is the same as in get_followers.