en:v2
API Open Platform Interface Document V2
API Open Platform Interface Document V2
Interface Domain Name: https://api.ng777.net
Official Domain Name: https://www.neapi.com
NG Interface Account Registration Address: https://www.neapi.com/zhuce.html
Interface Version: v2
Api Demo: NG Interface phpdemo
Support Channel: Support Channel
Interface Description:
| Parameter | Type | Parameter Value | Description |
|---|---|---|---|
| sign | string | Encrypted String | 32 Lowercase MD5 (random+sn+secretKey) |
| random | string | Random String | 16-32 Lowercase Letters + Numbers |
| sn | string | Fixed String | Merchant Prefix, please log in to the Management Backend to view |
| Content-Type | string | application/json | Request Type |
- All interfaces are POST The protocol is used to request, and the interface needs to verify the signature. The verification method is to set 4 parameters in the request header.
- Please log in to the management backend to view the parameters sn and secretKey. If you need to apply, please contact the business department.
- random is a random string with a length limit of 16-32 bits. It is a combination of lowercase letters + numbers.
- sign is the result of String sign=MD5(random+sn+secretKey)
- The data return format is unified in Json format
- The IP of the request interface needs to be added to the whitelist (it can be added by the management backend)
- All data time zones are Beijing time
- It is recommended that the request timeout of all interfaces be set to more than 30 seconds
Correct request return example:
{
"code": 10000, // Status code, 10000 success, other failures
"msg": "request succeeded", // Message
"data": null
}
Error request return example:
{
"code": 10404, // Status code, 10000 Success, others failed
"msg": "Signature verification failed", // message
"data": null
}
en/v2.txt · 最后更改: 2023/04/16 21:08 (外部编辑)