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
-
#oembed(url = nil, options = {}) ⇒ Object
Returns information about the media associated with the given short link.
Instance Method Details
#oembed(url = nil, options = {}) ⇒ Object
Returns information about the media associated with the given short link
21 22 23 24 25 |
# File 'lib/instagram/client/embedding.rb', line 21 def (*args) url = args.first return nil unless url get("oembed?url=#{url}", {}, false, false, true) end |