elixtagram v0.7.0 Elixtagram.API.Locations

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

Link to this section Summary

Functions

Fetch a %Elixtagram.Model.Location from the server by id. Optionally take an access token

Fetch recent media from a location (by id) pass a list of params to limit your query by any combination of:

  • count
  • min_timestamp
  • max_timestamp
  • min_id
  • max_id

Fetch a list of n recent medias along with a pagination data for a given location (by id) pass a list of params to limit your query by any combination of:

  • count
  • min_timestamp
  • max_timestamp
  • min_id
  • max_id

Search for locations which match some parameters, passed as a list:

  • distance (meters, default is 1000)
  • lat
  • lng
  • facebook_places_id
  • foursquare_v2_id
  • foursquare_id (for Foursquare V1 API, deprecated) Must pass either some kind of id, or a lat/lng pair

Link to this section Functions

Link to this function location(location_id, token \\ :global)

Fetch a %Elixtagram.Model.Location from the server by id. Optionally take an access token.

Link to this function recent_media(location_id, params \\ %{}, token \\ :global)

Fetch recent media from a location (by id) pass a list of params to limit your query by any combination of:

  • count
  • min_timestamp
  • max_timestamp
  • min_id
  • max_id
Link to this function recent_media_with_pagination(location_id, params \\ %{}, token \\ :global)

Fetch a list of n recent medias along with a pagination data for a given location (by id) pass a list of params to limit your query by any combination of:

  • count
  • min_timestamp
  • max_timestamp
  • min_id
  • max_id

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

Link to this function search(params, token \\ :global)

Search for locations which match some parameters, passed as a list:

  • distance (meters, default is 1000)
  • lat
  • lng
  • facebook_places_id
  • foursquare_v2_id
  • foursquare_id (for Foursquare V1 API, deprecated) Must pass either some kind of id, or a lat/lng pair.