Module: Instagram::Client::Embedding

Included in:
Instagram::Client
Defined in:
lib/instagram/client/embedding.rb

Overview

Defines methods related to embedding

Instance Method Summary collapse

Instance Method Details

#oembed(*args) ⇒ Object

@example Return information about the media associated with http://instagr.am/p/BUG/ Instagram.oembed(http://instagr.am/p/BUG/)

See Also:

Supported formats:

  • :json

Requires Authentication:

  • false

Rate Limited:

  • true



21
22
23
24
25
# File 'lib/instagram/client/embedding.rb', line 21

def oembed(*args)
  url = args.first
  return nil unless url
  get("oembed?url=#{url}", {}, false, true)
end