module Instagram::Client::Tags

Defines methods related to tags

Public Instance Methods

tag(tag, *args) click to toggle source

Returns extended information of a given Instagram tag

@overload tag(tag)

@param tag [String] An Instagram tag name
@return [Hashie::Mash] The requested tag.
@example Return extended information for the tag "cat"
  Instagram.tag('cat')

@format :json @authenticated false @rate_limited true @see instagram.com/developer/endpoints/tags/#get_tags

# File lib/instagram/client/tags.rb, line 16
def tag(tag, *args)
  response = get("tags/#{tag}")
  response
end
tag_recent_media(id, *args) click to toggle source

Returns a list of recent media items for a given Instagram tag

@overload tag_recent_media(tag, options={})

@param tag-name [String] An Instagram tag name.
@param options [Hash] A customizable set of options.
@option options [Integer] :max_tag_id (nil) Returns results with an ID less than (that is, older than) or equal to the specified ID. The value can be retrieved from the returned response via pagination.max_tag_id.
@option options [Integer] :min_tag_id (nil) Returns results with an ID greater than (that is, newer than) or equal to the specified ID. The value can be retrieved from the returned response via pagination.min_tag_id.
@return [Hashie::Mash]
@example Return a list of the most recent media items tagged "cat"
  Instagram.tag_recent_media('cat')

@see instagram.com/developer/endpoints/tags/#get_tags_media_recent @format :json @authenticated false @rate_limited true

# File lib/instagram/client/tags.rb, line 35
def tag_recent_media(id, *args)
  options = args.last.is_a?(Hash) ? args.pop : {}
  response = get("tags/#{id}/media/recent", options, false, false, false)
  response
end
tag_recent_media_page(id, *args) click to toggle source
# File lib/instagram/client/tags.rb, line 41
def tag_recent_media_page(id, *args)
  options = args.last.is_a?(Hash) ? args.pop : {}
  response = get("tags/#{id}/media/recent", options, false, false, false)
  response
end