11th of November 2020 - CPAElites is for sale! As a result of the 4th CEO absence in 2020 (for months): Please click [here] to read more!


OGAds offer API output help please
2017-01-20, 02:45 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
2017-02-11, 10:06 PM,
#2
Like that :

Code:
echo json_encode(array($Myoffers));
Reply
2017-02-11, 11:21 PM,
#3
Problem solved long time ago, thanks for your reply :)
Reply
2020-04-24, 01:52 AM,
#4
can you still help me on this, i need to display offers in my custom locker
Reply


Related Threads
Thread Author Replies Views Last Post
  OfferToro Postback Help Socialhits 5 2,602 2020-04-06, 04:55 PM
Last Post: thysdw
  [Help] Angular Niki 0 404 2019-05-18, 10:46 PM
Last Post: Niki
  Need Few Instructions That Can Help me Create Video Whiteboard Animation EvaHarrison 1 789 2018-08-17, 02:23 PM
Last Post: CharlieHarper
  OGads - How to change some words into bold in the file download locker? Lone Wolf 3 1,474 2018-08-03, 09:17 PM
Last Post: CreateAutomate
  OFFER EXPIRED- PLEASE REMOVE THREAD SwiffJustus 1 1,057 2018-05-04, 03:12 PM
Last Post: gmax29





About Us | Contact Us | CPAElites | Advertise | Stats

Copyright © 2013 - 2020 by (company to be announced later)
Temporarily (!) powered by MyBB, fixed (repaired) and enhanced by Charlie Harper (GitHub) aka Charles Francis Harper (Wikipedia)
Return to top
This forum uses Lukasz Tkacz MyBB addons.