hifigrafix — 2013-06-19T16:17:46-04:00 — #1
OAuth is a relatively new concept to me and I'm having a really hard time understanding.
I've got an app that used to run many times a day grabbing data via Twitter's API. Now Twitter requires authentication my data scrape no longer works.
I need to implement a way for my Application/Server to become authorized to run all the time.
All of the Oauth examples I see require a logged in user clicking "Log In With Twitter".
I'm looking for some direction on how I can authorize my app once and let it continue to run as desired. I briefly read about PIN based authentication but not sure if that's what I want. In addition I can't find out how to use any of the popular PHP Libraries for PIN based authentication.
Any direction is appreciated.
fretburner — 2013-06-19T17:04:50-04:00 — #2
What you need to do is log into Twitter's dev portal and [add your app to their system. This will generate a set of keys that you need to use the API.. what you need is your consumer key, consumer secret, access token and access secret. Once you have those, you can access the API from your server with one of the PHP libraries ([URL="https://github.com/abraham/twitteroauth/"]this one](https://dev.twitter.com/apps/new) seems to be good) without being prompted to log in or authorize every time.
hifigrafix — 2013-06-19T18:09:45-04:00 — #3
Thanks - yea I was over-complicating it a bit. I'm making progress with the library you pointed out.