Class: RubyInstagram::Client
- Includes:
- Users
- Defined in:
- lib/ruby_instagram/client.rb,
lib/ruby_instagram/client/users.rb
Overview
Note:
All methods have been separated into modules and follow the same grouping used in developers.facebook.com/docs/instagram-basic-display-api/reference
Wrapper for the Instagram REST API
Defined Under Namespace
Modules: Users
Constant Summary
Constants included from OAuth
Instance Method Summary collapse
-
#user_recent_media(options = {}) ⇒ Hashie::Mash
Returns a list of recent media items for a given user.
Methods included from Users
Methods inherited from API
Methods included from OAuth
#authorize_url, #get_access_token
Methods included from Request
Constructor Details
This class inherits a constructor from RubyInstagram::API
Instance Method Details
#user_recent_media(options = {}) ⇒ Hashie::Mash
Returns a list of recent media items for a given user
For getting this data, you must authenticate (and be allowed to see that user).
35 36 37 38 39 |
# File 'lib/ruby_instagram/client/users.rb', line 35 def user_media(*args) = args.last.is_a?(Hash) ? args.pop : {} id = args.first || 'me' get("#{id}/media", ) end |