|The authorization is needed for the following actions:
The authorization procedure involves sending member's username and password to the igGameCenter API and receiving an XML response containing member's ID and a unique session ID. These IDs should be sent for performing all actions mentioned above.
- Changing member's profile or password
- Creating a new game board
- Joining a game board and performing actions like making moves or sending messages in a game chat.
For authorization an external application should send a POST request to the following API script:
containing the following parameters:
||Application unique ID
||Application secret passcode
||Member's nickname or e-mail
||Member's password (plain-text or MD5 hash)
||0 - if the password field contains a plain-text password
1 - if the password field contains a calculated MD5 hash of the member's password
[optional] [max 64 symbols] A unique id associated with the physical device / site / social network.
Sending this parameter allows igGameCenter to track the number of games played by the member via the application.
The returned response will be one of the following:
<errorMessage>--Some error message--</errorMessage>
||Unique session ID
||Could be one of the following error messages:
||- some fatal error occured while accessing DB
||- invalid application ID specified
||- invalid application passcode specified
||- invalid email or nickname specified
||- member with the specified email or nickname was not found
||- invalid password specified