https://github.com/ruudk/twitteroauth
The first PHP Library to support OAuth for Twitter's REST API.
https://github.com/ruudk/twitteroauth
Last synced: about 2 months ago
JSON representation
The first PHP Library to support OAuth for Twitter's REST API.
- Host: GitHub
- URL: https://github.com/ruudk/twitteroauth
- Owner: ruudk
- License: mit
- Fork: true (abraham/twitteroauth)
- Created: 2010-12-07T13:34:15.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2014-06-10T18:17:38.000Z (over 11 years ago)
- Last Synced: 2025-10-04T06:36:04.896Z (3 months ago)
- Language: PHP
- Homepage: http://twitteroauth.labs.poseurtech.com
- Size: 224 KB
- Stars: 50
- Watchers: 6
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
- awesome-php-cn - 官网
- awesome-php - ruudk/twitteroauth - 一个Twitter OAuth库 (身份验证( Authentication and Authorization ))
README
THIS IS AN MODIFIED VERSION OF ABRAHAMS TWITTER OAUTH CLASS
The directories are structured and the class uses PHP5.3 namespaces.
Api.php has a new function called setToken($oauth_token, $oauth_token_secret) to set the token after initialising
===========
Usage
To install via composer, include:
"ruudk/twitter-oauth": "*"
in your composer.json file.
Then, after including composer's automatically generated autoloader, create a new instance of the twitter API:
$twitter = new \TwitterOAuth\Api(arguments);
When following the steps in the Documentation file, amend them to use this namespaced instanciation code or TwitterOAuth will not work.
===========
Abraham Williams | abraham@poseurte.ch | http://abrah.am | @abraham
The first PHP library for working with Twitter's OAuth API.
Documentation: http://wiki.github.com/abraham/twitteroauth/documentation
Source: http://github.com/abraham/twitteroauth
Twitter: http://apiwiki.twitter.com