Publisher API - Documentation Guide (v1.1)
Written by
Luisa Woodfine
Updated over a week ago
Overview:
Offer Get API:
API Name | End Point | API Doc |
Offer Get | https://api.cpidroid.com/offer/get?apikey=[APIKEY]&placement_id=[PLACEMENT_ID] | https://documenter.getpostman.com/view/6925801/2s93CNPEAt#fafd80de-1e4c-4d0f-a615-1ae7fff65237 |
Note: Grab your API keys from https://app.cpidroid.com/account/api?dashboard=publisher
Sample Code [PHP]:
<?php
$apikey = 'YOUR_APIKEY';
$placement_id = 'PLACEMENT_ID';
$offers = file_get_contents('https://api.cpidroid.com/offer/get?apikey='.$apikey.'&placement_id='.$placement_id);
$offers = json_decode($offers, true);
if($offers['status'] == 'success' && $offers['count'] > 0){
$offers = $offers['data'];
print_r($offers);
}
?>
Offerwall Get API:
API Name | End Point | API Doc |
Offerwall Get | https://api.cpidroid.com/offerwall/get?apikey=[APIKEY]&placement_id=[PLACEMENT_ID]&uid=[USER_IDENTIFIER]&country=[COUNTRY] | https://documenter.getpostman.com/view/6925801/2s93CNPEAt#1b842b32-4758-4ea1-be6b-6da8e3b103fd |
Note: Grab your API keys from https://app.cpidroid.com/account/api?dashboard=publisher
Bonus. Sketch is small bonus that has some of the theme. Front's Sketch file comes with all demo pages design only. Front is not only for developers but also for designers.
Was this article helpful?
1 out of 2 found this helpful