Sha256: 9e694abfc141d6487c039df530f4a8f9f62d521ecb3a77a81e5fe61929dabb3b

Contents?: true

Size: 480 Bytes

Versions: 4

Compression:

Stored size: 480 Bytes

Contents

require 'instagram'

module Corkboard
  module Clients
    class Instagram < ::Instagram::Client
      include Corkboard::Client

      def strategy
        :instagram
      end

      def preload
        user_media_feed(:count => 100)
      end

      def recent
        user_media_feed(:count => 10)
      end

      def subscribe(*args)
        options = args.extract_options!
        create_subscription(*(args + [subscribe_callback] + [options]))
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
corkboard-0.1.3 lib/corkboard/clients/instagram.rb
corkboard-0.1.2 lib/corkboard/clients/instagram.rb
corkboard-0.1.1 lib/corkboard/clients/instagram.rb
corkboard-0.1.0 lib/corkboard/clients/instagram.rb