API تصدیق
NiceNIC API درخواستوں کی تصدیق کے لیے API secret استعمال کرتا ہے۔ آپ اپنا API Secret اس میں دیکھ اور منظم کر سکتے ہیں کنٹرول پینل.
ہم سختی سے تجویز کرتے ہیں کہ آپ اپنا API secret محفوظ رکھیں، اور اپنے secrets کو GitHub، client code وغیرہ جیسے عوامی مقامات پر share نہ کریں۔ آپ اپنا API Secret ہمیشہ دوبارہ reset کر سکتے ہیں کنٹرول پینل.
تصدیق to the API is done using the Authیاization header, wیہاں you need to specify آپ کا یوزرنیم اور API secret, separated by a colon.
سب 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
}






