Admin.Registration
From FreePokerAlliance wiki
Contents |
Description
Registers a new player into the FPA system. Password must be minimum 5 characters long.
Parameters
| Required | Name | Type | Default value | Description |
|---|---|---|---|---|
| required | Command | string | Registration | API method name |
| required | RequestID | string | b5e555ec-7788-486e-8426-37d82a97a287 | Should always be set to this value |
| required | RegCode | string | 7912abc | Should always be set to this value |
| required | LoginName | string | Login name to register (later referred as UID in other methods)
Note: no space character allowed | |
| required | DisplayName | string | People see this name under their avatars in the game
Note: no % character allowed | |
| required | Password | string | Password, minimum 5 characters. | |
| required | string | E-mail address | ||
| optional | AvatarURL | string | User's Avatar URL (must be 100x100 px png or jpeg, and documentroot has to contain crossdomain.xml in the form of http://api.freepokeralliance.com/crossdomain.xml) | |
| optional | ProfileURL | string | User's Profile URL | |
| required | FirstName | string | NONE | Should always be set to this value |
| required | LastName | string | NONE | Should always be set to this value |
| required | CountryID | int | 1 | Should always be set to this value |
| required | State | string | NONE | Should always be set to this value |
| required | ZipCode | string | NONE | Should always be set to this value |
| required | City | string | NONE | Should always be set to this value |
| required | Address | string | NOTAVAIL | Should always be set to this value |
| required | PhoneNumber | string | NOTAVAIL | Should always be set to this value |
| required | GenderID | int | 1 | Should always be set to this value |
| required | DateOfBirth | string | 20081111 | Should always be set to this value |
| required | IsAffiliate | bool | False | Should always be set to this value |
| required | BonusDiscountCode | string | Should always be sent empty | |
| required | AffiliateBannerID | string | Will be provided to you by our support team. | |
| required | SwiftCode | string | Should always be sent empty | |
| required | BankName | string | Should always be sent empty | |
| optional | IsMD5Password | bool | Set to "True" if the (migrated) password was already hashed with MD5 encoding. |
Example form
http://api.freepokeralliance.com/examples/regform.html
Example Request
Replace XXXXXXXXXX with actual data.
| Roll over and copy URL |
Response
This command returns only a status code indicating that the request succeeded or not.
Error Codes
| Code | Description |
|---|---|
| Status=ERROR | An error occured |
| Status=OK | Registration successful |
| ERROR=ParameterName1,ParameterName2,...,ParameterNameN | Indicates which parameter names have wrong values |
Notes
- The UID is referred later as the LoginName here.
- LoginName must be maximum 30 characters long.
- Password can't be the same as LoginName
- Password must be minimum 5 characters long.
- The LoginName can’t have the “space” character in it.
- The Email, LoginName must be unique.
- Use the IsMD5Password=True trigger if the (migrated) password was already hashed with MD5 encoding.
- Your unique AffiliateBannerID will be provided to you by our support team.
