Ein PHP Software Development Kit zur Interaktion mit Auktions- und Ereignis-Endpunkten
composer require topsort/sdk
{ "require": { "topsort/sdk": "3.0.0" } }
<?php use Topsort\SDK; $topsort_client = new SDK("mein_api_schlüssel"); $products = ["i8bfHPJaxcAb3", "gDG0HV97ed2s"]; $slots = 1; $auction_result = $topsort_client->create_auction($slots, $products)->wait();
<?php use Topsort\SDK; $topsort_client = new SDK('mein_api_schlüssel'); $placement = [ "path" => "/categories/schuhe", ]; $topsort_client->report_click([ "placement" => $placement, "resolvedBidId" => "AKFU78", ]);
<?php use Topsort\SDK; $topsort_client = new SDK('mein_api_schlüssel'); $impression = [ "placement" => [ "path" => "/categories/schuhe", ], "resolvedBidId" => "AKFU78", ]; $topsort_client->report_impression($impression);
<?php use Topsort\SDK; $topsort_client = new SDK('mein_api_schlüssel'); $items = [ [ "productId" => "gDG0HV97ed2s", "quantity" => 2, "unitPrice" => 10000, ] ]; $topsort_client->report_purchase([ "occurredAt" => new DateTime(), "items" => $items, ]);
War diese Seite hilfreich?