There is no license information available for the latest version (v1.0.0) of this package.

百度推广API

v1.0.0 2019-05-16 03:53 UTC

README

百度推广API开发(FeedAPi)

FeedAPI调用

1、引入客户端文件Client

2、配置相关参数

3、初始化要调用的接口参数

4、调用call(url,调用参数)

use LeastCoding\Baidu\Client;

$config = array(

    'ak'   =>'access_key',
    'sk'   =>'secret_key',
    'appid'=>'bceUser',
    'account'=>'推广账号',
    'password'=>'推广账户密码'
);

$baidu = new Client($config);

$postdata = array(

    "accountFeedFields"=>[
        "userId",
        "balance",     
      ]
);  
//账号模块-查询账户信息
$result = $baidu->FeedApi->call('AccountFeedService/getAccountFeed',$postdata);

echo $result;