Taylor - that auth code snippet produces a URL, I log in with any of the Twitter accounts that need access, paste the URL into another tab, and I get a PIN back. I put the PIN in on the command line, it prints the consumer key, consumer secret for the app, and then it provides the access token and access token secret. This has worked for ONE account, I need to use it on half a dozen.
If I log into dev using the username/password of one of the accounts, create an app, then manually create the access & access secret tokens, they don’t work.
I need ONE application that provides reliable access for a small number of accounts. While writing this I got an older account from a friend, created an app, here are the credentials. They didn’t work. I reset keys, still didn’t work. Deleted the app, created a new one, gave it maximum permissions in settings, didn’t work. Used the consumer/consumer secret in that auth script, generated access/access secret, those don’t work.
http://imgur.com/SYOATTJ
I wrote my first oauth capable app about a week before Twitter cancelled username/password logins - was that in 2010? So I’ve done this a few times in the past. Keep in mind this code works for some accounts and it’s a very broadly used library - Tweepy. I formerly used the ‘twitter’ package from PyPI, which included some simple CLI tools that did what I needed, but this package wasn’t updated with the sunset of API 1.0, and I was forced to create a few new utilities.
It’s a real head scratcher. If it was every single account I would be digging through the source on the library itself, but since it works for a few accounts, this makes me think it’s Twitter using some measure such as account age or friend/follower counts in order to screen out junk apps, except that this just failed with a four year old account that has many followers.