Skip to content

Send Props API (Optional) ​

Description ​

By asking the original API interface, the player's character is distributed with props

The interface for the game all the pipeline operation. Grant stored value props

The basic parameters include: product type (elementType), item number (elementId), the number of items (count) platform, ID (userId), the message header (title), mail (content) server, CODE (serverCode), the current time stamp (timeStamp), MD5 signature (sign).

Domain name from the original factory and our products of negotiation.

The KEY value in the sign signature is provided by the original factory (e.g., 8–32 characters consisting of uppercase and lowercase letters or digits, with no special characters)

Processing Flow ​

Request URL (Use the get mode, and suggest supporting the post mode) The test server links such as:

java
http://domain.xxx.com/user/sendProps?elementType=1&elementId=0&userId=3258506&count=1&serverCode=ld4&timeStamp=1378456412008&roleId=12045897&sign=1faec808b862af2d5a726f993477529b&title=abc&content=12334

Request Parameters ​

Parameter description
serverCodeServer CODERequired
userIdUser IDRequired
elementTypeThe payment of goods such as type: ; Equipped with =5 card volume =7 ;  God iron =6 diamond =9 ;  Hero =8 essence =12 ;  Hero soul =10 dust =13 ;  Dragon soul =14 =16 cardOptional
elementIdThe payment of goods to the corresponding data available in number[such as]: elementType ; When elementType ;  For cards, card equipment, iron God, soul, hero, hero soul ;  ElementId item number,  For other types, elementId fill in 0Required
countThe number of items issuedRequired
timeStampTime stampRequired
signSignature: MD5(serverCode+ userId + elementType + elementId + count + KEY+ timeStamp); the KEY must consist of 8–32 uppercase or lowercase letters or digits, with no special charactersRequired
titleMail headerOptional
contentMail contentOptional
roleIdRole IDOptional

Response Result ​

Returns the standard JSON format
Success{"ret":0, "msg": "ok"}"ret":0 Receive success
Failure{"ret":1001, "msg": "Parameter error"}ret Not 0 is wrong, Note: if there is a definition of wrong coding instructions, please inform me

Response JSON Fields ​

Parameter description
retReturn statusRequired
msgReturn information descriptionRequired

Error Codes ​

1001 Parameter error 1002 The user does not exist 1003 Sign error 1004 Repeat submission 1008 Account disabled 65535 Server error