API Authentication

The NiceNIC API uses API secret to authenticate requests. You can view i manage vaš API Secret in the Kontrolna ploča.
We strongly recommend that you keep vaš API secret secure, do not share vaš secrets in public areas such as GitHub, client code, etc. You can always reset vaš API Secret by Kontrolna ploča.
Authentication to the API is done using the HTTP Authiliization header, wovdje you need to specify vaš Korisničko ime i API secret, separated by a colon.
Sve 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
}
Autorska prava © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Sva prava pridržana. · U.S. Affiliate: NICENIC LLC