Application Based Twitter OAuth

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.

Thank You

Hi,

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 seems to be good) without being prompted to log in or authorize every time.

Thanks - yea I was over-complicating it a bit. I’m making progress with the library you pointed out.

Thanks