...
Code Block |
---|
language | js |
---|
title | zoom-id-init successful example |
---|
|
{
"next_page": "zoomid",
"next_page_action": "/authenticate/face-detection/zoom-id",
"next_page_data": {
"zoomid": {
"is_enrolled": false,
"remaining_wrong_attempt": 3
}
},
"ready_for_final_authenticate": false
} |
نمونه پاسخ ناموفق (در صورتی که فراخوانی سرویس zoomid با خطا مواجه شود):
Code Block |
---|
language | js |
---|
title | zoom-id-init failed example |
---|
|
{
"next_page": "login",
"next_page_action": "/authenticate/first-page",
"next_page_data": {
"login": {
"user_info": {
"loa": "LEVEL_3_1",
"fields": {
"mobile_number": {
"priority": 1,
"value": "09190019974",
"status": "hidden"
},
"national_number": {
"priority": 2,
"value": "1990619746",
"status": "hidden"
}
}
},
"client_info": {
"scope_titles": "تلفن همراه",
"client_name": "ديوار",
"client_id": "divar"
},
"general_info": {
"download_address": "/download",
"deprecate_address": "/deprecate"
}
}
},
"ready_for_final_authenticate": false,
"error": {
"reason": "خطا در فراخوانی سرویس تشخیص چهره"
}
} |
...
Code Block |
---|
language | js |
---|
title | zoom-id register successful example |
---|
|
{
"next_page": "zoomid",
"next_page_action": "/authenticate/face-detection/zoom-id",
"next_page_data": {
"zoomid": {
"is_enrolled": true,
"remaining_wrong_attempt": 3
}
},
"ready_for_final_authenticate": false
} |
نمونه پاسخ ناموفق در صورت تطابق نداشتن اطلاعات کاربر:
Code Block |
---|
language | js |
---|
title | zoom-id register failed example |
---|
|
{
"next_page": "zoomid",
"next_page_action": "/authenticate/face-detection/zoom-id",
"next_page_data": {
"zoomid": {
"is_enrolled": false,
"remaining_wrong_attempt": 2
}
},
"ready_for_final_authenticate": false,
"error": {
"reason": "اطلاعات کاربر تطابق ندارند"
}
} |
نمونه پاسخ ناموفق در صورت بیش از حد اشتباه وارد کردن اطلاعات کاربر:
Code Block |
---|
language | js |
---|
title | zoom-id register failed example |
---|
|
{
"next_page": "zoomid",
"next_page_action": "/authenticate/face-detection/zoom-id",
"next_page_data": {
"zoomid": {
"is_enrolled": false,
"remaining_wrong_attempt": 2
}
},
"ready_for_final_authenticate": false,
"error": {
"reason": "اطلاعات کاربر تطابق ندارند"
}
} |
سرویس تعیین وضعیت zoomid
آدرس: /authenticate/face-detection/zoom-id
توضیح: این سرویس برای تعیین وضعیت کاربر پس از فراخوانی سرویس تطابق چهره توسط ماژول zoomid استفاده میشود. در callback فراخوانی سرویس تطابق چهره ماژول zoomid، با فراخوانی این سرویس وضعیت احراز هویت کاربر بررسی میشود.
بدنه درخواست: ندارد
متد: POST
محتوای پاسخ: در صورتی که is_enrolled در پاسخ true باشد به معنی موفقیت در ثبت نام کاربر است. در صورت خطا هم remaining_wrong_attempt تعداد خطای ممکن باقیمانده را مشخص میکند.
نمونه پاسخ موفق:
Code Block |
---|
language | js |
---|
title | zoom-id check successful example |
---|
|
{
"next_page": "zoomid",
"next_page_action": "/authenticate/face-detection/zoom-id",
"next_page_data": {
"zoomid": {
"is_enrolled": true,
"remaining_wrong_attempt": 3
}
},
"ready_for_final_authenticate": false
} |
نمونه پاسخ ناموفق در صورتی که چهره کاربر تطابق نداشته باشد:
Code Block |
---|
language | js |
---|
title | zoom-id check failed example |
---|
|
{
"next_page": "zoomid",
"next_page_action": "/authenticate/face-detection/zoom-id",
"next_page_data": {
"zoomid": {
"is_enrolled": true,
"remaining_wrong_attempt": 3
}
},
"ready_for_final_authenticate": false
} |
نمونه پاسخ ناموفق در صورت اتمام تلاشهای ممکن برای تطابق چهره:
Code Block |
---|
language | js |
---|
title | zoom-id check failed example |
---|
|
{
"next_page": "zoomid",
"next_page_action": "/authenticate/face-detection/zoom-id",
"next_page_data": {
"zoomid": {
"is_enrolled": true,
"remaining_wrong_attempt": 3
}
},
"ready_for_final_authenticate": false
} |