get "/statuses/followers", TwitterAPI.Controller, :followers
get "/statuses/friends", TwitterAPI.Controller, :friends
get "/friends/ids", TwitterAPI.Controller, :friends_ids
+ get "/friendships/no_retweets/ids", TwitterAPI.Controller, :empty_array
get "/externalprofile/show", TwitterAPI.Controller, :external_profile
end
ids = friends
|> Enum.map(fn x -> x.id end)
|> Poison.encode!
+
json(conn, ids)
else
_e -> bad_request_reply(conn, "Can't get friends")
end
end
+ def empty_array(conn, _params) do
+ json(conn, Poison.encode!([]))
+ end
def update_profile(%{assigns: %{user: user}} = conn, params) do
params = if bio = params["description"] do