Lately, I’ve been working on a Sign in with Twitter PHP script. What I want to do is I want my code to detect wether the user has already authorized my application or not. I’ve heard I can do something like this with account/verify_credentials, but how? For example in https://dev.twitter.com/discussions/1241 Taylor Singletary is stating that “Use account/verify_credentials before posting to determine if you still have the ability to make calls on that user’s behalf.” This is an example of what I want to accomplish:
if(user has registered with application) {
// If user HAS authorized application
} else {
// If user has NOT authorized application
}
How can I accomplish something like this? Any help would be highly appreciated.