Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Just a little readme grooming... #46

Merged
merged 1 commit into from Feb 21, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 7 additions & 10 deletions README.md
Expand Up @@ -68,6 +68,13 @@ API Usage Examples
------------------
require "rubygems"
require "instagram"

# All methods require authentication (either by client ID or access token).
# To get your Instagram OAuth credentials, register an app at http://instagr.am/oauth/client/register/
Instagram.configure do |config|
config.client_id = YOUR_CLIENT_KEY
config.access_token = YOUR_ACCESS_TOKEN
end

# Get a list of a user's most recent media
puts Instagram.user_recent_media(777)
Expand All @@ -78,16 +85,6 @@ API Usage Examples
# Get a list of recent media at a given location, in this case, the Instagram office
puts Instagram.location_recent_media(514276)

# All methods require authentication (either by client ID or access token).
# To get your Instagram OAuth credentials, register an app at http://instagr.am/oauth/client/register/
Instagram.configure do |config|
config.client_id = YOUR_CLIENT_KEY
config.access_token = YOUR_ACCESS_TOKEN
end

# Get a list of all the users you're following
puts Instagram.follows

# Get a list of media close to a given latitude and longitude
puts Instagram.media_search("37.7808851","-122.3948632")

Expand Down