OGAds offer API output help please
01-20-2017, 06:15 AM
Post: #1
avatar
I want to output offers as shown in the first example in the api page what should I write in php?

output example:

[{"name":"Castle Clash - (Android, Free, INCENT, US, 113M)","link":"http:\/\/jump.ogtrk.net\/aff_c?aff_id=15447&offer_id=2993","epc":"0.12287"}]

I wrote this but it doesn't output the same data structure as the above example

PHP Code:
$Myoffers = array("title"=> array($offer['name']), "link"=> array($offer['link']));
            echo 
json_encode($Myoffers); 

I actually need it like this:
[{[],[]},{[],[]},....]

Any help please.
Reply
02-12-2017, 01:36 AM
Post: #2
avatar
Like that :

Code:
echo json_encode(array($Myoffers));
Reply
 Thanks given by: AbdouMotDz
02-12-2017, 02:51 AM
Post: #3
avatar
Problem solved long time ago, thanks for your reply :)
Reply

Share This:


Elites Related Threads
Thread: Author Views: Last Post
OGads Custom CSS - Need Help ashu55 1,383 12-15-2016 02:11 AM
Last Post: weblycos
CPAGrip Offer Walls Help Arthod 597 11-23-2016 02:44 AM
Last Post: Arthod
Buying Unqiue HQ Landing Page For Ogads chexychukra 1,788 08-12-2016 01:00 AM
Last Post: Dario_
Custom Css for OGads ashu55 1,119 08-01-2016 05:53 AM
Last Post: matz
Youtube api v2 to v3 .net evolution74 758 06-05-2015 02:41 AM
Last Post: Jonz





© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top