Mục đích:
Cho phép sử dụng Alice Voice OTP từ bên thứ 3
API chi tiết
Các request API đều thực hiện tới tên miền
https://alice.antbuddy.com/rest-api
Tất cả API request tới hệ thống Alice, authorize header bắt buộc:
Authorization: Bearer {access_token}
API Get AcessToken:
Endpoint: /get-token/Method: POSTBody: {"username": "username","password": "password"}Description:Username: tên hoặc email đã tạo bên antbuddyPassword: mật khẩu
API tạo yêu cầu đọc mã cho số điện thoại:
Endpoint: /voice-otp/Method: POSTBody: {"alarm_phonenumber": "0919273027","otp": "123445","maxretry": 0}Miêu tả:- alarm_phonenumber: Số điện thoại muốn nhận mã code (bắt buộc)- otp: Mã code muốn gửi tới số điện thoại, nếu trống hoặc không gửi, hệ thống tự động tạo một mã code trải nghiệm.- maxretry: số lần đọc lại mã , mặc định là 0, tương ứng với 1 lần đọc.