API Authentication

The NiceNIC API uses API secret to authenticate requests. You can view اور manage آپ کا API Secret in the کنٹرول پینل.
We strongly recommend that you keep آپ کا API secret secure, do not share آپ کا secrets in public areas such as GitHub, client code, etc. You can always reset آپ کا API Secret by کنٹرول پینل.
Authentication to the API is done using the HTTP Authیاization header, wیہاں you need to specify آپ کا صارف نام اور API secret, separated by a colon.
سب 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
}
کاپی رائٹ © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. جملہ حقوق محفوظ ہیں. · U.S. Affiliate: NICENIC LLC