metanet/php-twitter-api
最新稳定版本:v1.0.3
Composer 安装命令:
composer require metanet/php-twitter-api
包简介
PHP library to make usage of the twitter API more easy
README 文档
README
This is a simple PHP wrapper for the twitter API (version 1.1).
This is a fork of the twitter-api-php from J7mbo.
It simplifies the whole API requesting thing a bit.
Example
try { $twitterApi = new ch\metanet\twitter\api\TwitterAPI('access_token', 'access_token_secret', 'consumer_key', 'consumer_key_secret'); $twitterApi->performRequest('statuses/update', TwitterAPI::REQUEST_METHOD_POST, array( 'status' => 'foo bar baz' )); } catch(Exception $e) { echo 'ERROR during API call: ' , $e->getMessage() , ' (Code: ' , $e->getCode() , ')'; }
统计信息
- 总下载量: 109
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL
- 更新时间: 2014-11-18