API Authentication

The واجهة NiceNIC البرمجية 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 الدولية المحدودة. كل الحقوق محفوظة. · U.S. Affiliate: NICENIC LLC