johnshopkins/twitterhook
最新稳定版本:v2.0
Composer 安装命令:
composer require johnshopkins/twitterhook
包简介
A PHP library to interact with the GET and POST methods of the Twitter API using single user sign-on OAuth authentication. Adapted from @abraham's twitteroauth.
README 文档
README
A PHP library to interact with the Twitter's REST API using single user sign-on OAuth authentication.
Example
<?php include "path/to/vendor/autoload.php"; $consumer = array( "key" =>"consumerkey", "secret" => "consumersecret" ); $token = array( "key" =>"accesstoken", "secret" => "accesstokensecret" ); $twitterHook = new \TwitterHook\Client($consumer, $token); $content = $twitterHook->get("statuses/home_timeline"); $tweet = $twitterHook->post("statuses/update", array( "status" => "You would not believe how I posted this tweet.", ));
统计信息
- 总下载量: 9.8k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-02-11