/libweibo_biz

新浪微博开放平台商业数据 SDK PHP版(Sina Weibo open platform business SDK for PHP)

Primary LanguagePHP

libweibo_biz

新浪微博开放平台商业数据php sdk(Sina Weibo open platform business php sdk) 官网链接

安装

composer(推荐)

composer 安装请参考,链接

安装后编辑 composer.json 添加内容

"require": {
    "liuhui/libweibo_biz":"dev-master"
}

"repositories": {
    "packagist": {
        "type": "composer",
        "url": "https://packagist.phpcomposer.com"
    }
},
"minimum-stability": "dev"

执行安装命令,进行安装

composer install

手动

步骤:

 
 1.下载本 git 的文件
 
 2.下载  xiaosier/libweibo
 
 3.手动解决依赖关系,顺序加载 saetv2.ex.class.php biz_apis.php biz_subscribe.php 等文件
 

使用

//在业务代码中加载 vender/autoload.php 文件

include 'vender/autoload.php';

添加相应的配置,如APPKEY,TOKEN 等,可以参考 tests/config.php 文件

//业务代码

require "config.php";

$object = new biz_apis(APPKEY, APPSECRET, TOKEN);

$ret = $object->place_user_timeline_other($uid);

var_dump($ret);

die;

##change log

2016-05-18 添加 搜索最近数据API 链接,微博内容数据API 链接,检索历史全量数据API 链接,微博用户数据API 链接,订阅服务API 链接

注意事项

此SDK 依赖 xiaosier/libweibo 包, 链接

Bug tracker

Have a bug? Please create an issue here on GitHub! issue!

License


Copyright 2011 SINA, Inc. Copyright 2011 SAE

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0