API Autentifikācija
NiceNIC API izmanto API slepeno atslēgu pieprasījumu autentifikācijai. Savu API slepeno atslēgu varat skatīt un pārvaldīt Kontroles panelī.
Mēs stingri iesakām uzturēt API slepeno atslēgu drošu un to nesniegt publiskās vietās, piemēram, GitHub, klientu kodā u.c. API slepeno atslēgu vienmēr varat atiestatīt, Kontroles panelī.
Autentifikācija to the API is done using the 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 HTTPS. 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
}






