Download the PHP package sohaibilyas/sedotmp-php without Composer
On this page you can find all versions of the php package sohaibilyas/sedotmp-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sohaibilyas/sedotmp-php
More information about sohaibilyas/sedotmp-php
Files in sohaibilyas/sedotmp-php
Package sedotmp-php
Short Description PHP SDK for SedoTMP - Sedo Traffic Monetization Platform (sedotmp.com).
License MIT
Informations about the package sedotmp-php
SedoTMP PHP SDK
A simple PHP SDK for interacting with SedoTMP - Sedo Traffic Monetization Platform (sedotmp.com).
Requires PHP 8.2+
Installation
Install via Composer:
Usage
Getting Started
Authentication
Getting a New Access Token
Call getAccessToken() to fetch and cache an access token:
Using an Existing Access Token
If you already have a token (e.g., from cache or session), use setAccessToken() to avoid making an authentication request:
Complete Example with Token Caching
Content API
Get Categories
Platform API
Get Content Campaigns
Retrieve content campaigns with pagination:
Get Single Content Campaign
Retrieve a specific content campaign by ID:
Create Content Campaign
Create a new content campaign:
Get Campaign Report
Retrieve campaign report data with dimensions, filters, sorting, and pagination:
Available dimensions:
DATEHOURPARTNERCAMPAIGN_IDCOUNTRYDEVICE_TYPE
Available sort fields:
RELATED_LINKS_REQUESTSRELATED_LINKS_IMPRESSIONSRELATED_LINKS_CLICKSRELATED_LINKS_RPMAD_REQUESTSMATCHED_AD_REQUESTSAD_IMPRESSIONSIMPRESSIONSCLICKSCTRAD_CTRCPCAD_RPMCONVERSION_RATEREVENUEDATEHOURPARTNERCAMPAIGN_IDCOUNTRYDEVICE_TYPE
Pagination options:
Use page-based pagination:
Or use offset-based pagination:
Note: If neither startDate nor endDate is provided in the filter, they will default to yesterday's date.
Get Keyword Performance Report
Retrieve keyword performance data with dimensions, filters, sorting, and pagination:
Available dimensions:
DATEPARTNERCAMPAIGN_IDCOUNTRYDEVICE_TYPE
Postback Templates
Postback templates define reusable S2S callback configurations for conversion events.
Get All Postback Templates
Get Single Postback Template
Create Postback Template
Update Postback Template
Delete Postback Template
Traffic Source Templates
Traffic source templates define reusable tracking configurations for different traffic sources.
Get All Traffic Source Templates
Get Single Traffic Source Template
Create Traffic Source Template
Update Traffic Source Template
Delete Traffic Source Template
Using Templates with Content Campaigns
You can reference templates when creating content campaigns to automatically apply pre-configured tracking settings:
You can also reference templates by name:
Custom Configuration
You can optionally provide custom API version, base URL, and auth URL:
Development
Testing
All tests use mocked HTTP clients - no real API calls are made during testing.
Run unit tests using PEST:
Run the entire test suite:
Code Quality
Keep a modern codebase with Pint:
Run refactors using Rector:
Run static analysis using PHPStan:
License
The MIT License (MIT). Please see License File for more information.