mytracker/s2s-api

tracker.my.com s2s api

2.2.1 2022-09-21 14:26 UTC

This package is auto-updated.

Last update: 2024-07-21 18:30:41 UTC


README

This library provides tracker.my.com S2S api functionality.

Documentation

You can read api documentation here - https://tracker.my.com/docs/api/about

Examples

For quick start you can see some examples in Example class:

<?php declare(strict_types=1);

// Check s2s api accessible without any credentials:
$v = Mycom\Tracker\S2S\Api\Example::getActualVersion();
echo $v, PHP_EOL;

// Check your account token:
$yourAppId = 1;
$yourAccountToken = '';
$responseCode = Mycom\Tracker\S2S\Api\Example::testAppAccess($yourAppId, $yourAccountToken);
echo $responseCode, PHP_EOL;

// See how you can send events inside this methods:
Mycom\Tracker\S2S\Api\Example::sendRegistrationEvent($yourAppId, $yourAccountToken);
Mycom\Tracker\S2S\Api\Example::sendLoginEvent($yourAppId, $yourAccountToken);
Mycom\Tracker\S2S\Api\Example::sendCustomEvent($yourAppId, $yourAccountToken);
Mycom\Tracker\S2S\Api\Example::sendCustomRevenue($yourAppId, $yourAccountToken);