create_account.md 2.1 KB

Create Player Account

Request URL

{API_URL}

Request Parameters

Field Name Type Length Required Description
itype string 4 Yes 1 = Identifies a player registration request
authcode string 32 Yes Agent identifier, assigned by the provider
authkey string 32 Yes Agent secret key, assigned by the provider
score double 19 No Score gifted upon registration. Defaults to 0; only effective if greater than 0
name string 32 No Player nickname. Defaults to empty
phone string 33 No Player phone number. Defaults to empty

Example

  • URL:

    • {API_URL}
  • HTTP Method:

    • POST
  • Form Data:

    Content-Type: application/x-www-form-urlencoded

        itype: 1,
        authcode: test001,
        authkey: 123456,
        score: 100.77,
        name: xxxxx,
        phone: 13333333333,
        info:today is good
    

Response Fields

Field Name Type Length Description
ret int 4 -1 indicates registration success; any other value indicates failure
info string 128 Failure message returned when registration fails
account string 32 Player account that was registered
name string 32 Registered player nickname
pwd string 33 Password assigned for the player to log in

Response Format

{"ret":-1,
"account":"0146415079",
"name":"xxxx",
"pwd":"eKFqNh"
}