承接 sandklock/soclall 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sandklock/soclall

最新稳定版本:2.1.0

Composer 安装命令:

composer require sandklock/soclall

包简介

SocialAll is one API for all networks

README 文档

README

SocialAll API library for PHP

Note: SocialAll is an unified API for 15+ popular social networks that supports social login, posting (supported video & photo), messaging and friends inviting.

Installation

$ composer require sandklock/socialall

Go to SocialAll and register an application for free.

Usage

require_once 'vendor/autoload.php';

$sa = new SocialAll\SocialAll($app_id, $secret_key);

error_log($sa->getLoginUrl('facebook', 'http://yourdomain.com/callback'));

API

$sa->getLoginUrl($network, $callback_url)
  • $network -- string -- see networks
  • $callback_url -- string
  • returns string login url
$sa->getUser($token, $callback)
  • $token -- string
  • $callback -- function ($err, $user)
$sa->getFriends($token, $callback)
  • $token -- string -- token given by SocialAll
  • $callback -- function ($err, $friends)
$sa->postStream($token, $message, $callback)
  • $token -- string
  • $message -- string
  • $callback -- function ($err)
$sa->sendMessage($token, $message, $friends, $title, $callback)
  • $token -- string
  • $message -- string
  • $friends -- array -- list of friend's IDs
  • $title -- string
  • $callback -- function ($err)

Networks

  • disqus
  • facebook
  • foursquare
  • github
  • google
  • lastfm
  • linkedin
  • live
  • mailru
  • plurk
  • reddit
  • tumblr
  • twitter
  • vkontakte
  • wordpress

Bugs and Issues

If you encounter any bugs or issues, feel free to open an issue at github.

Credits

SandKlock

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-09-17