Sha256: 6529b6617fe72203d0f4c94e1d09cb0661250ba2cbd7e9fb29d7c2749cf376a8

Contents?: true

Size: 1.1 KB

Versions: 18

Compression:

Stored size: 1.1 KB

Contents

module Instagram
  class Client
  	# Defines methods related to embedding
    module Embedding
    	# Returns information about the media associated with the given short link
      #
	    # @overload oembed(url=nil, options={})
	    # 	@param url [String] An instagram short link
	    #   @param options [Hash] A customizable set of options
	    #   @option options [Integer] :maxheight Maximum height of returned media
	    #   @option options [Integer] :maxwidth Maximum width of returned media
	    #   @option options [Integer] :callback A JSON callback to be invoked
	    #   @return [Hashie::Mash] Information about the media associated with given short link
      # 	@example Return information about the media associated with http://instagr.am/p/BUG/
      #   	Instagram.oembed(http://instagr.am/p/BUG/)
      #
      # @see http://instagram.com/developer/embedding/#oembed
      # @format :json
      # @authenticated false
      # @rate_limited true
      def oembed(*args)
        url = args.first
        return nil unless url
        get("oembed?url=#{url}", {}, false, false, true)
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 4 rubygems

Version Path
extendi-instagram-2.0.6 lib/instagram/client/embedding.rb
extendi-instagram-2.0.5 lib/instagram/client/embedding.rb
extendi-instagram-2.0.4 lib/instagram/client/embedding.rb
extendi-instagram-2.0.3 lib/instagram/client/embedding.rb
extendi-instagram-2.0.2 lib/instagram/client/embedding.rb
extendi-instagram-2.0.1 lib/instagram/client/embedding.rb
extendi-instagram-2.0.0 lib/instagram/client/embedding.rb
instagram-continued-1.3.0 lib/instagram/client/embedding.rb
instagram-community-maintained-1.1.6 lib/instagram/client/embedding.rb
instagram-continued-1.2.1 lib/instagram/client/embedding.rb
instagram-continued-1.2.0 lib/instagram/client/embedding.rb
instagram-1.1.6 lib/instagram/client/embedding.rb
instagram-1.1.5 lib/instagram/client/embedding.rb
instagram-1.1.4 lib/instagram/client/embedding.rb
instagram-1.1.3 lib/instagram/client/embedding.rb
instagram-1.1.2 lib/instagram/client/embedding.rb
instagram-1.1.1 lib/instagram/client/embedding.rb
instagram-1.1.0 lib/instagram/client/embedding.rb