omniauth / omniauth-instagram

OmniAuth strategy for Instagram.
112 stars 85 forks source link

How to get a client? #13

Closed xyebizz closed 9 years ago

xyebizz commented 9 years ago

Hi!

Sorry for a stupid question, previously I used omniauth-twtter and passed configurations like this:

client = Twitter::REST::Client.new do |config| config.consumer_key = "YOUR_CONSUMER_KEY" config.consumer_secret = "YOUR_CONSUMER_SECRET" config.access_token = "YOUR_ACCESS_TOKEN" config.access_token_secret = "YOUR_ACCESS_SECRET" end

and then I used it like client.user("gem")

How can I get the same thing with omniauth-instagram?

Thanks!

ropiku commented 9 years ago

The client has nothing to do with Omniauth, that's for authenticating users. What you described is the twitter gem. Take a look at the instagram-ruby-gem if you need an Instagram client.