jessicadigital/social-feed
Composer 安装命令:
composer require jessicadigital/social-feed
包简介
Get feeds from different social networks in a unified format
关键字:
README 文档
README
Get feeds from different social networks in a unified format.
Install
Use composer: composer require jessicadigital/social-feed
Features
- Get the most recent posts of a user
- Get a specific item based on an ID
- Implemented media: Facebook, Instagram, Pinterest, Twitter, YouTube
- Returns items in simple format
- Gets information (id, service, thumbnail) on attached video/images from: youtube, vine, instagram, vimeo
- Get an id from an url of a post
Example
$twitter = new JessicaDigital\SocialFeed\Services\TwitterService(array( 'access_token' => 'xxx', 'access_token_secret' => 'xxx', 'consumer_key' => 'xxx', 'consumer_secret' => 'xxx' )); $feed = $twitter->getFeed('jessica_digital');
Credentials
The following credentials are needed depending on the medium:
- Facebook: app_id, app_secret
- Instagram: client_id, client_secret
- Pinterest: [none]
- Twitter: consumer_key, consumer_secret, access_token, access_token_secret
- Youtube: api_key
Usage
The services provided through this package query various social service APIs. In the interests of service availability, please use this package to fetch data at scheduled intervals, e.g. using a CRON job, and caching the data on your server. The easiest way to cache data is to write the JSON feed to a text file, e.g.
file_put_contents($filename, json_encode($data));
统计信息
- 总下载量: 108
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-03-11