API Authentication

The NiceNIC API uses API secret to authenticate requests. You can view ir manage jūsų API Secret in the Valdymo pultas.
We strongly recommend that you keep jūsų API secret secure, do not share jūsų secrets in public areas such as GitHub, client code, etc. You can always reset jūsų API Secret by Valdymo pultas.
Authentication to the API is done using the HTTP Autharization header, wčia you need to specify jūsų Vartotojo vardas ir API secret, separated by a colon.
Visi 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
}
Autorių teisės © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Visos teisės saugomos. · U.S. Affiliate: NICENIC LLC