Website Offers XML Feed

From PAS Documentation
Jump to: navigation, search

Website Offers XML Feed

If you would like to dynamically display your rakeback site offers on your main site or on other sites we now have an Offers API which will allow you to do this. The URL to access the API is below:

http://YOURWEBSITEHERE/interfaces/api/offers.php

The API will return an XML result in the following format.

<?xml version='1.0' standalone='yes'?>
<offers>
	
		<offer>
			<name>Full Tilt Poker</name>
			<network>Full Tilt</network>
			<link>http://YOURWEBSITEHERE.com/rakeback/678/Full-Tilt-Poker.html</link>
			<rb_player>27%</rb_player>
			<stats>Daily</stats>

			<sitebonus>100% up to $600</sitebonus>
			<raketype>Dealt</raketype>
			<offer_type>Rakeback</offer_type>
		</offer>
</offers>

An example of how to parse this XML feed (using PHP) can be found here: http://www.pokeraffiliatesolutions.com/example_xmlparse.phps

Type Parameter

The Offers API has one optional GET parameter called type - when type is 'bonus' the resulting XML will contain only bonus offers. If type is left blank or anything other than 'bonus', all rakeback offers will be returned.

To invoke the XML feed and only see bonus offers you would use the following URL:

http://YOURWEBSITEHERE/interfaces/api/offers.php?type=bonus
Personal tools