API Autenticació
L'API de NiceNIC utilitza un secret API per autenticar les sol·licituds. Pots veure i gestionar el teu Secret API al Panell de Control.
Recomanem encaridament que mantinguis el teu secret API segur i que no comparteixis els teus secrets en espais públics com GitHub, codi client, etc. Sempre pots restablir el teu Secret API a través de Panell de Control.
Autenticació to the API is done using the Authoization header, waquí you need to specify el teu Nom d'usuari i API secret, separated by a colon.
Tots 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
}






