zys5210 / toutiao-marketing-sdk
头条 MarketingApi SDK
dev-master
2023-05-15 10:54 UTC
Requires
- php: >=5.6.0
This package is not auto-updated.
Last update: 2024-11-11 18:04:27 UTC
README
- 今日头条MARKETING API SDK
Installation
composer require zys5210/toutiao-marketing-sdk:*
Api Doc
Requirements
- PHP 5.6 +
Directory Structure
AdvertisingDelivery/ 广告组模块
AdvertisingOriginality/ 广告创意模块
AdvertisingPlan/ 广告计划模块
AuthenticationOauth/ 头条OAuth2.0授权
core/ sdk核心
Dmp/ DMP人群管理模块
Report/ 报表模块
Tool/ 工具模块
Example
// 获取token, refresh_token $auth = new ToutiaoSdk\ToutiaoAuth(APPID, SECRET); print_r($auth->getAccessToken(AUTH_CODE)); // 刷新token print_r($auth->refreshToken(REFRESH_TOKEN));
// 调用示例 $client = new ToutiaoSdk\TouTiaoClient(TOKEN); $req = $client::AdvertisingDelivery()->campaignGet()->setAdvertiserId(ADVERTISER_ID)->send(); var_dump($req->getBody());
Method introduction
License
licensed under the Apache License 2.0