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
  1. 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.
  2. Please log in to the management backend to view the parameters sn and secretKey. If you need to apply, please contact the business department.
  3. random is a random string with a length limit of 16-32 bits. It is a combination of lowercase letters + numbers.
  4. sign is the result of String sign=MD5(random+sn+secretKey)
  5. The data return format is unified in Json format
  6. The IP of the request interface needs to be added to the whitelist (it can be added by the management backend)
  7. All data time zones are Beijing time
  8. 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 (外部编辑)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki