For changing profile information of an existing member an external application should send a POST request to the following API script:
http://www.iggamecenter.com/api_user_edit.php
containing the following parameters:
Field Name |
Field Content |
Field Format |
app_id |
Application unique ID. |
mandatory, numeric |
app_code |
Application secret passcode. |
mandatory, alpha-numeric |
uid |
Member's ID that was received during authorization procedure) |
mandatory, numeric |
session_id |
Unique session ID that was received during authorization procedure) |
mandatory, alpha-numeric |
name |
New nickname. |
optional, alpha-numeric + some other symbols |
password |
New password. |
optional, alpha-numeric + some other symbols |
email |
Member's email. |
optional, alpha-numeric + some other symbols |
realName |
Member's real name. |
optional, alpha-numeric + some other symbols |
sex |
Member's sex. |
optional, 1 character (can be M, F or -) |
birthDay |
Day of member's birth. |
optional, numeric (1-31) |
birthMonth |
Month of member's birth. |
optional, numeric (1-12) |
birthYear |
Year of member's birth. |
optional, numeric (4 digits) |
country |
2-letters country code. |
optional, 2 characters |
location |
More details about member's location. |
optional, alpha-numeric + some other symbols |
about |
Any text information that the member wants to share. |
optional, alpha-numeric + some other symbols |
subscribeNews |
Any non-zero value means that the member is willing to subscribe to igGameCenter's newsletter. |
optional, numeric |
showEmail |
Any non-zero value means that the member is willing to show his email on his public profile. |
optional, numeric |
showBirthday |
Any non-zero value means that the member is willing to show his birthday on his public profile. |
optional, numeric |
Any optional parameter can be ommited (doing so will not change the information contained in the corresponding field).
The returned response will be one of the following:
Success response:
<userUpdateSuccess />
Failure response:
<errorMessage>--Some error message--</errorMessage>
where
Field Name |
Field Content |
errorMessage |
Could be one of the following error messages:
DATABASE_ERROR |
- some fatal error occured while accessing DB |
INVALID_APP_ID |
- invalid application ID specified |
INVALID_APP_CODE |
- invalid application passcode specified |
INVALID_EMAIL |
- invalid email specified |
INVALID_BIRTH_DATE |
- invalid birthday specified |
INVALID_PASSWORD |
- invalid password specified |
SPECIFY_COUNTRY |
- invalid country specified |
NICK_TOO_LONG |
- nickname cannot be longer than 15 symbols |
NICK_INVALID_SYMBOLS |
- nickname contains invalid symbols |
NICK_NO_ENG_LETTERS |
- nickname should contain at least three consecutive letters |
DUPLICATE_NICK |
- another account is found using the same nickname |
DUPLICATE_EMAIL |
- another account is found using the same email |
|
|