Update Existing User

From PAS Documentation
Jump to: navigation, search

Update Existing Player API Call

This API call will allow you to update an existing player in the PAS database.

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/user/update_existing_user.php

The following GET Variables are REQUIRED

	api_key - The API Key obtained via the Technical Department at PAS

	mid - Primary Key (integer) as stored in the PAS Database

	outside_id - Primary key (integer) as stored in your Database


The following GET Variables are OPTIONAL

epw - string, 255 character limit, should be hashed if the next field is set to TRUE, otherwise plaintext and PAS will hash it as normal

hashed - 'true' or 'false', defalts to FALSE

email - string, 255 character limit, must validate per email standards


raf - '3993' - the MID of the referring User, must be on the same Publisher Account


mailable - '1' or '0' - Whether the user has elected to receive emails from you & PAS


fname - string, 255 character limit


lname - string, 255 character limit


address1 - string, 255 character limit


address2 - string, 255 character limit


country - 'US' or 'UK' - Two character country code


city - string, 255 character limit


state - 'IN' or 'FL' - Two character state code


zip - '47403' or '55105' - Five character numeric zipcode


phone - '18123310538' - Between one and eleven character numeric phone number


gender - 'M' or 'F' - One character, must be M or F


aim - string, 255 character limit, searchable via Users dropdown on PAS Admin Backend


msn - string, 255 character limit, searchable via Users dropdown on PAS Admin Backend


yahoo - string, 255 character limit, searchable via Users dropdown on PAS Admin Backend


skype - string, 255 character limit, searchable via Users dropdown on PAS Admin Backend


Return Values There are six possible return values, all of which are returned as plain-text strings. These six possible return values are as follows.

ERRORS
	"Error - Invalid API Key!" - API Key provided is invalid or incorrect
	"Error - Required variables not provided!" - signals that not all required variables were submitted.
	"Error - User not found!" - User account that you are trying to update was not found in our database
	"Error - %%FIELDNAME%% is invalid!" - Indicates that %%FIELDNAME%% was not given as expected and did not validate
	"Error - Validation Passed, Data NOT Updated!" - Indicates that although all validations were passed, 
                                                          the user was not updated in our database for an unknown reason
VALID
	"SUCCESS" - This string will be returned if all validations are met and the user is actually updated.
Personal tools