Module: Twitter::Client::Urls
- Included in:
- Twitter::Client
- Defined in:
- lib/twitter/client/urls.rb
Overview
Defines methods related to URLs
Instance Method Summary collapse
-
#resolve(urls, options = {}) ⇒ Hash
Returns the canonical version of a URL shortened by Twitter.
Instance Method Details
#resolve(urls, options = {}) ⇒ Hash
Note:
Undocumented
Returns the canonical version of a URL shortened by Twitter
19 20 21 22 |
# File 'lib/twitter/client/urls.rb', line 19 def resolve(*args) = args.last.is_a?(Hash) ? args.pop : {} get("/1/urls/resolve.json", .merge("urls[]" => args), :phoenix => true) end |