guillaumebarranco/kebhub-api
Composer 安装命令:
composer require guillaumebarranco/kebhub-api
包简介
First version of Kebhub API for tests
README 文档
README
A Repository for out Kebhub API utilisation
$settings = array(
'client_id' => "YOUR CLIENT ID",
'secret_id' => "YOUR SECRET ID",
'api_key' => "YOUR API KEY"
);
$type = 'twitter'; // choices : "twitter", "instagram", "all"
$fields = 'all'; // choices : "text, picture, date, title, type, link" OR "all"
$limit = '3'; // choices every number more than "0"
$kebhub = new KebhubAPIGet($settings); // Launch the API class with your settings
$access_token = $kebhub->getAccessToken(); // Get your access token
$url = 'http://kebhub.com/api/get/'.$type.'/'.$limit.'/'.$fields.'?access_token='.$access_token;
// Make the url request with your settings and access_token
$json = $kebhub->performRequest($url, true); // ¨Perform the request and it's done !
$datas = json_decode($json, true);
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GNU
- 更新时间: 2015-03-06