postDestinationByPlatformTestWithHttpInfo method

Future<Response> postDestinationByPlatformTestWithHttpInfo(
  1. String platform
)

Sends ONE synthetic pageview through the connected destination end to end and reports what the platform said.

Sends ONE synthetic pageview through the connected destination end to end and reports what the platform said. A send the platform refuses is reported as data — {"ok": false, "error": …} at 200 — so the console shows the platform's own words rather than an error about Hanzo. It requires org admin.

Note: This method returns the HTTP Response.

Parameters:

  • String platform (required): Platform is the destination to act on, from the path: ga4 | meta | tiktok | linkedin | x | reddit | insights | analytics.

Implementation

Future<Response> postDestinationByPlatformTestWithHttpInfo(String platform,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/destination/{platform}/test'
    .replaceAll('{platform}', platform);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}