Get User MGR

From PAS Documentation
Jump to: navigation, search

User MGR Retrieval

This feed will allow you to pull the Gross Revenue for any given username in your system, and allows you to specify the date range for which you want to receive the data.


NOTE:
This feed requires an API Key in order to use. In order to obtain this API Key please email Arthur from our Technical Team with your website URL as well as the intended use of the API key.

You may request your API key by emailing: Arthur (at) PokerAffiliateSolutions.com

Please be SURE to include your website URL that you will be using to make the API calls to.

Send a request to the following URL:

http://YOUR_RAKEBACK_SITE/feeds/integration/general/get_mgr.php

The following GET variables are required:

api_key - The API key that you received from our Tech department

username - The Username that you are querying for (as stored in the PAS database) - Please URL Encode this to prevent errors.

ymd_start - The start date for data retrieval, in the following format: YYYYMMDD (February 1st, 2009 = 20090102)

ymd_end - The end date for data retrieval, in the following format: YYYYMMDD (February 28th, 2009 = 20090228)

Returned Data:

There are four possible returns. All four are returned in plain-text with no markup. The quotes are shown only for display purposes in this documentation. There will never be quotes in the actual returned data.


ERRORS

	"Error - Invalid API Key!" - API Key provided is incorrect

	"Error - Required variables not provided or invalid!" - Required variables are missing (see above)

	"Error - Username does not exist!" - Username, as supplied, does not exist in the PAS database

VALID

	"838.21" - This will be a number that can be '0.00' or any number above.  
			There will always be two decimal places and no thousands separator.
Personal tools