elixtagram v0.3.0 Elixtagram.API.Locations

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

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

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

Functions

location(location_id, token \\ :global)

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

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
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.