UNPKG

viettel-ekyc-sdk

Version:
22 lines 638 B
// import { OS } from 'constant/OS' import { ID_QUALITY, ID_SPOOF } from '../../constants/api'; import { api, BASE_URL, client_code } from '../../utils/apisauce'; const checkIdQuality = async (imageUriBase64) => { const data = { client_code: client_code, image: imageUriBase64, }; return api.post(BASE_URL + ID_QUALITY, data); }; const checkIdSpoof = async (imageUriBase64) => { const data = { client_code: client_code, image: imageUriBase64, }; return api.post(BASE_URL + ID_SPOOF, data); }; export default { checkIdSpoof, checkIdQuality, }; //# sourceMappingURL=api.js.map