promopult/tiktok-marketing-api
最新稳定版本:v3.1.0
Composer 安装命令:
composer require promopult/tiktok-marketing-api
包简介
https://ads.tiktok.com API PHP-wrapper
README 文档
README
/!\ WIP: Not ready for production.
Convenient wrapper for TikTok Marketing API.
Installation
$ composer require promopult/tiktok-marketing-api
or
"require": {
// ...
"promopult/tiktok-marketing-api": "*"
// ...
}
Usage
See examples folder.
$credentials = \Promopult\TikTokMarketingApi\Credentials::fromAccessToken( getenv('__ACCESS_TOKEN__') ); // Any PSR-18 HTTP-client $httpClient = new \GuzzleHttp\Client(); $client = new \Promopult\TikTokMarketingApi\Client( $credentials, $httpClient ); $response = $client->user->info(); print_r($response); //Array //( // [message] => OK // [code] => 0 // [data] => Array // ( // [create_time] => 1614175583 // [display_name] => my_user // [id] => xxx // [email] => xxx // ) // // [request_id] => xxx //)
统计信息
- 总下载量: 7.82k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: UNLICENSE
- 更新时间: 2021-07-17