Polyv Help Center

Help Center

Polyv Account Registration - Channel Usage

Updated: 2022-09-02 18:08:07

Interface Description

1、给渠道提供保利威账号注册接口。
2、接口支持https协议

Interface URL

http://api.polyv.net/live/v4/root/user/register

Request Method

POST

Interface Constraints

  1. The interface supports both HTTP and HTTPS. HTTPS is recommended to ensure interface security. Interface calls have frequency limits. See details

Request Parameter Description

Parameter Required Type Description
appId true String Enterprise-level appId, provided by Polyv
timestamp true Long Current 13-digit millisecond timestamp, valid for 3 minutes
sign true String Signature, where appSecret is the enterprise-level appSecret provided by Polyv, a 32-character uppercase MD5 value [See Signature Generation Rules]
company true String Company name, maximum length 32
mobile true Integer Phone number, maximum length 11
contact true String Contact person, maximum length 12
email true String Email, used as the Polyv login account. The same email cannot be registered repeatedly

Example

http://api.polyv.net/live/v4/root/user/register?company=测试&mobile=17600000000&contact=王测试103&email=wangtest103@polyv.net&appId=idjkeydaex&timestamp=1641463824000&sign=690F1DB9678A1D82495BB187F82BC6D8

Response Parameter Description

Parameter Type Description
code Integer Status code, same as HTTP status code, used to determine the basic response status
status String Response result, determined by the business. Returns success on success, error on failure
success Boolean Whether the response was successful
requestId String Request ID, a unique UUID generated for each request, only for troubleshooting and debugging, should not be tied to business logic
data Boolean Request response object [See Data Parameter Description]
error Object Error information [See Error Parameter Description]

Data Parameter Description

Parameter Type Description
userId String Polyv backend userId
password String Polyv backend login password
appId String Polyv backend appId
appSecret String Polyv backend appSecret, please keep it safe, this field involves account security

Error Parameter Description

Parameter Type Description
code Integer Error code, used to determine the specific error reason
desc String Error description, corresponding to error.code

Java Request Example

For quick integration of the base code, please download the relevant dependency source code. Click here to download the source code. After downloading, add it to your own source project. HttpUtil.java and LiveSignUtil.java in the test cases are included in the downloaded file.


Response Example

For system global error descriptions, see Global Error Description

Success Example

{
    "code": 200,
    "status": "success",
    "requestId": "847f0716fa76461baf8979aaa4415dc3.67.16342672396023837",
    "data": {
        "userId": "g5lvig1qv6",
        "password": "dfs34v",
        "appId": "g5lvijo2ef",
        "appSecret": "4dd3f125fc43413fb7bc0121bbe33358"
    },
    "success": true
}

Error Example

{
    "code": 400,
    "status": "error",
    "requestId": "4081dbac03e6441e8bdd301d8feee5a2.124.16360831818611581",
    "error": {
        "code": 20001,
        "desc": "application not found."
    },
    "success": false
}
联系客服,在线咨询