Kullanıcı hesaplarını ve cihaz bağlantılarını yönetmenize ilişkin detayları aşağıda bulabilirsiniz.
Kullanıcı Silme
Bir kullanıcıyı e-posta adresine göre siler. Kullanıcı bağlıysa, bu istek cihaz bağlantısını da sonlandırır.
DELETE https://api.berqnetservices.com/users?email=test@berqnet.com
Request Parametreleri
| Ad | Tür | Açıklama |
|---|---|---|
| string | Kullanıcının e-posta adresi |
Response:
200 Kullanıcı Başarıyla Silindi
{
"date": "2024-11-18T08:25:50.587Z",
"status": true,
"messages": [],
"results": {}
}
400 Geçersiz Parametreler
{
"date": "2024-11-18T08:18:39.086Z",
"status": false,
"messages": [
{
"code": "UserNotFound",
"description": "User cannot be found."
}
],
"results": []
}
Bu metodu nasıl çağırabileceğinize ilişkin bir örnek:
curl --request DELETE \ --url '<https://api.berqnetservices.com/users?email=test@berqnet.com>' \ --header 'Authorization: Bearer YOUR_TOKEN'
Kullanıcı Bağlantısını Sonlandırma
Bir kullanıcının tüm cihaz bağlantılarını e-posta adresine göre sonlandırır.
POST https://api.berqnetservices.com/users/vpn/drop
Request Parametreleri
| Ad | Tür | Açıklama |
|---|---|---|
| string | Kullanıcının e-posta adresi |
Response:
200 Kullanıcı VPN Bağlantısı Başarıyla Düşürüldü
{
"date": "2024-11-18T08:25:50.587Z",
"status": true,
"messages": [],
"results": {}
}
400 Geçersiz Parametreler
{
"date": "2024-11-18T08:18:39.086Z",
"status": false,
"messages": [
{
"code": "UserNotFound",
"description": "User cannot be found."
}
],
"results": []
}
Bu metodu nasıl çağırabileceğinize ilişkin bir örnek:
curl --request POST \
--url '<https://api.berqnetservices.com/users/vpn/drop>' \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"email": "test@berqnet.com"
}'
0 yorum
Yorum yazmak için lütfen oturum açın: oturum aç.