INSTAGRAM API
Register
• http://instagram.com/developer/
• Assign Oauth client_id and client_secret for your application
Authenticate
• User authenticates & authorizes application with Instagram
Start making requests!
• Make requests to Instagram API Endpoints
Slide 14
Slide 14 text
CONFIG/ROUTES.RB:
match '/auth/instagram/callback' => ’sessions#callback'
Slide 15
Slide 15 text
Hide your kids,
Hide your wife,
Hide your
So dumb, so dumb, so dumb
class InstagramController < ApplicationController
def index
Instagram.configure do |config|
config.client_id = ENV['INSTAGRAM_APP_ID']
config.client_secret = ENV['INSTAGRAM_SECRET']
config.access_token = ENV['INSTAGRAM_TOKEN']
end
end
end
Good info:
http://railsapps.github.com/rails-environment-variables.html
'INSTAGRAM_APP_ID'
'INSTAGRAM_SECRET'
'INSTAGRAM_TOKEN'