API Authentication
The NiceNIC API uses API secret to authenticate requests. You can view un manage jūsu API Secret in the Vadības panelis.
We strongly recommend that you keep jūsu API secret secure, do not share jūsu secrets in public areas such as GitHub, client code, etc. You can always reset jūsu API Secret by Vadības panelis.
Authentication to the API is done using the HTTP Authvaiization header, wšeit you need to specify jūsu Lietotājvārds un 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
Authorization: username:api_secret
Content-Type: application/json
### Response format
```json
{
"code": 0,
"msg" : "success",
"data" : {} // Specific data
}






