Ok, to start off, I have a website, well duh. I have a company that uses Webgains for their affiliate program. I signed up to be their affiliate and post links to their deals on a page on my site. But, they update their deals every day and I can’t keep up with them. My site traffic doesn’t get the deals.
Right now, I have a google sheet that I have to manually update and it automatically gets updated to my site.
I have the API from webgains that shows me what my deals are.
Here is an example of what my API looks like:
https://api.webgains.
com/2.0/vouchers?networks=US&joined=1&key=e26604f65430b9d26ea97ld3468bd4b63
I changed the numbers above and below for privacy.
and an example of the result:
[{“code”:“honeyx10”,“programId”:265855,“type”:“generic”,“startDate”:“2018-04-23T05:00:00+01:00”,“expiryDate”:“2021-04-26T04:59:59+01:00”,“commissionType”:“default”,“description”:“10% off everything!”,“destinationUrl”:“https://www.website.
com/offers/honeyx10”,“trackingUrl”:“https://track.webgains.
com/click.html?wgcampaignid=141151&wgprogramid=665894”,“discount”:“10% off everything!”,“program_name”:“companyname US”,“network”:“US”,“currency”:“USD”,“id”:1712345,“commissionValueFormatted”:“Default”}]
I have spent way too much time trying to figure out how to do this. All of the how-to’s I see seem to be how to get data from WIX to 3rd party. Or it’s API inside WIX to WIX.
I just want to show a repeater that says:
Deal Expiration date.
They both have a link that is the trackingUrl above.
Hopefully someone can help me with this. Thanks in advance.