API Authentication

The NiceNIC API uses API secret to authenticate requests. You can view và manage của bạn API Secret in the Bảng điều khiển.
We strongly recommend that you keep của bạn API secret secure, do not share của bạn secrets in public areas such as GitHub, client code, etc. You can always reset của bạn API Secret by Bảng điều khiển.
Authentication to the API is done using the HTTP Authhoặcization header, wtại đây you need to specify của bạn Tên đăng nhập và API secret, separated by a colon.
Tất cả API requests must be made over HTTP. API requests without authentication will also fail.
https://api.nicenic.net/v2/
Host: api.nicenic.net
Authorization: username:api_secret
Content-Type: application/json
                                            
### Response format
```json
{
    "code": 0,
    "msg" : "success",
    "data" : {} // Specific data
}
Bản quyền © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Đã đăng ký bản quyền. · U.S. Affiliate: NICENIC LLC