Sha256: 593636787fb54bf49e4c41a080436b75c4902a934a9b3c8907f1a9c92949cc13

Contents?: true

Size: 1.35 KB

Versions: 13

Compression:

Stored size: 1.35 KB

Contents

module Instagram
  class Client
    # Defines methods related to real-time geographies
    module Geographies
      # Returns a list of recent media items for a given real-time geography
      #
      # @overload geography_recent_media(id, options={})
      #   @param user [Integer] A geography ID from a real-time subscription.
      #   @param options [Hash] A customizable set of options.
      #   @option options [Integer] :count (nil) Limit the number of results returned
      #   @option options [Integer] :min_id (nil) Return media before this min_id
      #   @option options [Integer] :max_id (nil) Return media after this max_id
      #   @option options [Integer] :min_timestamp (nil) Return media after this UNIX timestamp
      #   @option options [Integer] :max_timestamp (nil) Return media before this UNIX timestamp
      #   @return [Hashie::Mash]
      #   @example Return a list of the most recent media items taken within a specific geography
      #     Instagram.geography_recent_media(514276)
      # @see http://instagram.com/developer/endpoints/geographies/
      # @format :json
      # @authenticated false
      # @rate_limited true
      def geography_recent_media(id, *args)
        options = args.last.is_a?(Hash) ? args.pop : {}
        response = get("geographies/#{id}/media/recent", options)
        response["data"]
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
instagram_geo-0.8.8 lib/instagram/client/geographies.rb
instagram-0.9.0 lib/instagram/client/geographies.rb
instagram_geo-0.8.7 lib/instagram/client/geographies.rb
instagram-0.8.5 lib/instagram/client/geographies.rb
instagram-0.8.4 lib/instagram/client/geographies.rb
instagram-0.8.3 lib/instagram/client/geographies.rb
instagram-0.8.2 lib/instagram/client/geographies.rb
instagram-fixed-0.8.1 lib/instagram-fixed/client/geographies.rb
instagram-fixed-0.8 lib/instagram/client/geographies.rb
instagram-innonate-0.8 lib/instagram/client/geographies.rb
instagram-0.8 lib/instagram/client/geographies.rb
instagram-0.7 lib/instagram/client/geographies.rb
instagram-0.6.2 lib/instagram/client/geographies.rb