Skip to content

Impress your mom on your 4th week :P --- Learn to use an API, OAuth, API wrapper and some other JAZZ

Notifications You must be signed in to change notification settings

tereg/Instabobos

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instagram Magic

Run it

  • $ Shotgun or $ Unicorn (look into the difference)
  • Visit localhost:9393 or localhost:8080 (if defaults)

Maria las llaves!! Get your keys...

Go to the Instagram Dev site

alt text

Go here to start the registration!

alt text

Register like a champ!

  • Ports are important...
  • Examples:
    • Website URL: http://localhost:9393/
    • Redirect URL: http://localhost:9393/auth/callback

alt text

Done and Manage

alt text

Your credentials

alt text

In the APP

Add your credentials to the controller Instagram.rb:

  config.client_id = "2b089c3e792e413e83df3a594xxxxx"
  config.client_secret = "9302a2b100ae4494a8d43c65xxxxxx"

Get the access_token :S

0 Shotgun
1 Visit '/'  
2 Press the Instagram Logo  
3 Authorize  
4 PROFIT!!!  

And the token ???

In the servers logs (terminal)

"######### accsess_token ##############"
"369004168.2b089c3.b8f0a8115c144dxxxxxxx"
"--------------------------------------"

Test other Instagram Endpoints

access_token + Postman alt text

About

Impress your mom on your 4th week :P --- Learn to use an API, OAuth, API wrapper and some other JAZZ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 95.5%
  • HTML 2.6%
  • JavaScript 1.9%