elixtagram v0.6.0 Elixtagram.API.Tags

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

Summary

Functions

Fetch a list of n recent medias as %Elixtagram.Model.Media for a given tag. Optionally takes an access token

Fetch a list of n recent medias along with a pagination data for a given tag. Optionally takes an access token

Fetch a list of tags as %Elixtagram.Model.Tag from the API who match a query. Optionally take an access token

Fetch a %Elixtagram.Model.Tag representing a single tag from the API, optionally take an access token

Functions

recent_media(tag_name, params, token \\ :global)

Fetch a list of n recent medias as %Elixtagram.Model.Media for a given tag. Optionally takes an access token.

recent_media_with_pagination(tag_name, params, token \\ :global)

Fetch a list of n recent medias along with a pagination data for a given tag. Optionally takes an access token.

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

search(query, token \\ :global)

Fetch a list of tags as %Elixtagram.Model.Tag from the API who match a query. Optionally take an access token.

tag(tag_name, token \\ :global)

Fetch a %Elixtagram.Model.Tag representing a single tag from the API, optionally take an access token.