elixtagram v0.6.0 Elixtagram.API.Users

Provides access to the /users/ area of the Instagram API (for internal use).

Summary

Functions

Fetches media items from the current user’s feed

Fetches media the user liked

Fetches a list of recent media posted by a user

Fetches a list of recent media posted by a user along with a pagination data

Fetch a list of users as %Elixtagram.Model.UserSearchResult. Takes a params Map and an optional token

Fetch a %Elixtagram.Model.User representing a user. Takes a user id and an optional token. If using a token (or :global), :self can be passed as a user id to return the user associated with the token

Functions

feed(params \\ %{}, token \\ :global)

Fetches media items from the current user’s feed

media_liked(params \\ %{}, token \\ :global)

Fetches media the user liked

recent_media(user_id, params \\ %{}, token \\ :global)

Fetches a list of recent media posted by a user

recent_media_with_pagination(user_id, params \\ %{}, token \\ :global)

Fetches a list of recent media posted by a user along with a pagination data

Returns %{data: list_of_media, pagination: %{next_url: url, next_max_id: max_id} If there are no more pages, pagination will be: %{}

search(params, token \\ :global)

Fetch a list of users as %Elixtagram.Model.UserSearchResult. Takes a params Map and an optional token.

The instagram API is actually broken, it returns the wrong number of results, so I adjust the returned List to make it work as expected.

user(user_id, token \\ :global)

Fetch a %Elixtagram.Model.User representing a user. Takes a user id and an optional token. If using a token (or :global), :self can be passed as a user id to return the user associated with the token.