Can we use faceliveness rest APIs in any other language ?

0

Can we use faceliveness APIs which are shared in resources, to CreateSession, StartLivenessSession and to get result from any other language which supports RestAPI call. I am trying to get this integrated with Salesforce' Apex Language. The createSession rest api creates the session Id, but StartLivenessSession always fails via custom Rest API call.

질문됨 4달 전142회 조회
1개 답변
0

Hi,

Yes, AWS service APIs can be used from any language if you use them at the REST layer.

You have then to properly structure and encode all parameters to match them,

The hard part is usually to get SigV4 right to sign those requests with valid AWS credentials. See https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html

To avoid this pain, this project may be useful to you: https://github.com/mattandneil/aws-sdk

It is a good starting point to get wroking Apex code and extend it to faceliveness API. The repo doesn't seem to specify license. So, I'd suggest to reach the authors.

Best,

Didier

profile pictureAWS
전문가
답변함 4달 전
  • I can manage to get AWS credential working fine. But as written earlier the CreateFaceLivenessSession rest api creates the session Id successfully, but StartLivenessSession always fails With a 200 HTTP code but with response body as

    { "Output": { "__type": "com.amazon.coral.service#UnknownOperationException", "message": null }, "Version": "1.0" }

    This API has given this spec.

    https://docs.aws.amazon.com/rekognition/latest/APIReference/API_rekognitionstreaming_StartFaceLivenessSession.html

    But I am not sure why is AWS failing to recognize the service.

    I think "StartFaceLivenessSession" cannot be called from REST api, apart from supported AWS sdk. Please confirm this once, if you have any strong evidence for this.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠