OGAds offer API output help please
2017-01-20, 06:15 AM,
#1
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
Share This Thread :

2017-02-12, 01:36 AM,
#2
Like that :

Code:
echo json_encode(array($Myoffers));
Latest Thanks - View all

AbdouMotDz(2017-02-12 02:49 AM) 
Reply
2017-02-12, 02:51 AM,
#3
Problem solved long time ago, thanks for your reply :)
Reply


Related Threads
Thread Author Replies Views Last Post
  OGads - How to change some words into bold in the file download locker? Lone Wolf 3 722 2018-08-04, 12:47 AM
Last Post: CreateAutomate
  OFFER EXPIRED- PLEASE REMOVE THREAD SwiffJustus 1 502 2018-05-04, 06:42 PM
Last Post: gmax29
  Custom Ogads content locker CSS Mikka07 1 1,359 2017-06-09, 07:22 AM
Last Post: DrKent
  OGads Custom CSS - Need Help ashu55 2 2,127 2016-12-15, 02:11 AM
Last Post: weblycos
  CPAGrip Offer Walls Help Arthod 0 1,066 2016-11-23, 02:44 AM
Last Post: Arthod





About Us | Contact Us | CPA Elites | Advertise | Stats

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