Sha256: aebe6b04cbed09265318774df847130223faa4871167de629abb6f62f70d2c7d

Contents?: true

Size: 1.34 KB

Versions: 27

Compression:

Stored size: 1.34 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
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 5 rubygems

Version Path
instagram-continued-continued-1.5.0 lib/instagram/client/geographies.rb
extendi-instagram-2.0.6 lib/instagram/client/geographies.rb
extendi-instagram-2.0.5 lib/instagram/client/geographies.rb
extendi-instagram-2.0.4 lib/instagram/client/geographies.rb
extendi-instagram-2.0.3 lib/instagram/client/geographies.rb
instagram-continued-1.4.0 lib/instagram/client/geographies.rb
extendi-instagram-2.0.2 lib/instagram/client/geographies.rb
instagram-continued-1.3.3 lib/instagram/client/geographies.rb
extendi-instagram-2.0.1 lib/instagram/client/geographies.rb
extendi-instagram-2.0.0 lib/instagram/client/geographies.rb
instagram-continued-1.3.2 lib/instagram/client/geographies.rb
instagram-continued-1.3.1 lib/instagram/client/geographies.rb
instagram-continued-1.3.0 lib/instagram/client/geographies.rb
instagram-community-maintained-1.1.6 lib/instagram/client/geographies.rb
instagram-continued-1.2.1 lib/instagram/client/geographies.rb
instagram-continued-1.2.0 lib/instagram/client/geographies.rb
instagram-1.1.6 lib/instagram/client/geographies.rb
instagram-1.1.5 lib/instagram/client/geographies.rb
instagram-1.1.4 lib/instagram/client/geographies.rb
instagram-1.1.3 lib/instagram/client/geographies.rb