""" Copyright 2023 TikTok Pte. Ltd.
This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. """
All URIs are relative to https://business-api.tiktok.com
Method | HTTP request | Description |
---|---|---|
pixel_batch | POST /open_api/v1.3/pixel/batch/ | Pixel Track server-to-server batch api |
pixel_track | POST /open_api/v1.3/pixel/track/ | Pixel Track server-to-server api |
InlineResponse200 pixel_batch(access_token, body=body)
Pixel Track server-to-server batch api
from __future__ import print_function
import time
import business_api_client
from business_api_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = business_api_client.EventCallbackApi()
access_token = 'access_token_example' # str | Authorized access token. For details, see [Authentication](https://ads.tiktok.com/marketing_api/docs?id=1738373164380162).
body = business_api_client.PixelBatchBody() # PixelBatchBody | Pixel batch update body parameters (optional)
try:
# Pixel Track server-to-server batch api
api_response = api_instance.pixel_batch(access_token, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling EventCallbackApi->pixel_batch: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
access_token | str | Authorized access token. For details, see Authentication. | [required] |
body | PixelBatchBody | Pixel batch update body parameters | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse200 pixel_track(access_token, body=body)
Pixel Track server-to-server api
from __future__ import print_function
import time
import business_api_client
from business_api_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = business_api_client.EventCallbackApi()
access_token = 'access_token_example' # str | Authorized access token. For details, see [Authentication](https://ads.tiktok.com/marketing_api/docs?id=1738373164380162).
body = business_api_client.PixelTrackBody() # PixelTrackBody | Pixel track body parameters (optional)
try:
# Pixel Track server-to-server api
api_response = api_instance.pixel_track(access_token, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling EventCallbackApi->pixel_track: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
access_token | str | Authorized access token. For details, see Authentication. | [required] |
body | PixelTrackBody | Pixel track body parameters | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]