Skip to content

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

Notifications You must be signed in to change notification settings

liuhui244671426/libweibo_biz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages