Skip to content

Latest commit

 

History

History
111 lines (79 loc) · 3.86 KB

EventCallbackApi.md

File metadata and controls

111 lines (79 loc) · 3.86 KB

""" 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. """

business_api_client.EventCallbackApi

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

pixel_batch

InlineResponse200 pixel_batch(access_token, body=body)

Pixel Track server-to-server batch api

Example

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)

Parameters

Name Type Description Notes
access_token str Authorized access token. For details, see Authentication. [required]
body PixelBatchBody Pixel batch update body parameters [optional]

Return type

InlineResponse200

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

pixel_track

InlineResponse200 pixel_track(access_token, body=body)

Pixel Track server-to-server api

Example

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)

Parameters

Name Type Description Notes
access_token str Authorized access token. For details, see Authentication. [required]
body PixelTrackBody Pixel track body parameters [optional]

Return type

InlineResponse200

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]