Skip to content

jonhurlock/Twitter-Application-Only-Authentication-OAuth-PHP

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

#Twitter Application-only Authentication (OAuth) using PHP Provides a set of functions to allow authentication via Twitter's Application-only authentication protocol. Methods include the following:

  • getting bearer token
  • invalidating bearer token
  • simple search function

If you wish to use this script you will have to have registered your application with Twitter via dev.twitter.com Then modify lines 14 and 15 to reflect your consumer key and consumer secret. At the bottom of the script you will see a demo of getting a bearer token, using the bearer token to perform a search and then invalidating the token.

Notice

This code is not tested and probably shouldn't be put into production systems, and is only supposed to reperesent the steps involved in performing application-only authentication.

Contact Me

If you have any problems contact me via twitter @jonhurlock

About

PHP Twitter Application Only Authentication OAuth methods

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages