promopult /
tiktok-marketing-api
| 1 | <?php |
||||
| 2 | |||||
| 3 | require '../vendor/autoload.php'; |
||||
| 4 | |||||
| 5 | $credentials = \Promopult\TikTokMarketingApi\Credentials::fromAccessToken( |
||||
| 6 | getenv('__ACCESS_TOKEN__') |
||||
| 7 | ); |
||||
| 8 | |||||
| 9 | $httpClient = new \GuzzleHttp\Client(); |
||||
| 10 | |||||
| 11 | $client = new \Promopult\TikTokMarketingApi\Client( |
||||
| 12 | $credentials, |
||||
| 13 | $httpClient |
||||
| 14 | ); |
||||
| 15 | |||||
| 16 | $resp = $client->bc->transfer( |
||||
| 17 | getenv('__BC_ID__'), |
||||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||||
| 18 | getenv('__ADVERTISER_ID__'), |
||||
|
0 ignored issues
–
show
getenv('__ADVERTISER_ID__') of type string is incompatible with the type integer expected by parameter $advertiserId of Promopult\TikTokMarketin...\Service\Bc::transfer().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 19 | 'RECHARGE', |
||||
| 20 | 1.00 |
||||
| 21 | ); |
||||
| 22 | |||||
| 23 | print_r($resp); |
||||
| 24 |