Animetrics Face Recognition

부분 유료
분류별 animetrics | 업데이트됨 vor 4 Tagen | Media
Health Check

N/A

모든 토론으로 돌아가기

Invalid API Key => We couldn't find the api key: xxxxxxxxxxxxxxxxxxxxxxx

Rapid account: Klenmarket
klenmarket
7 years ago

Hi, I requested api key at http://api.animetrics.com/ and got email with it.
Now I am trying to detect face sending request with correct Mashape-Key (test or prod doesn’t matter)
And as a response I only get this error: Invalid API Key => We couldn’t find the api key: [my_api_key_from_email]

I’ve tried to send requests via web interface here at mashape and using php in my application like this:

$response = Unirest\Request::post("https://animetrics.p.mashape.com/detect?api_key=my_api_key",
    array(
        "X-Mashape-Key" => 'MY_MASHAPE_KEY'
        "Accept" => "application/json"
    ),
    array(
        "selector" => "FACE",
        "url" => $src
    )
);

responses are the same.
So how can I make it work? What did I miss?

Rapid account: Davidkhess
davidkhess Commented 4 years ago

However the code examples also don’t use the v2 endpoint - so not sure what’s going on there.

Rapid account: Davidkhess
davidkhess Commented 4 years ago

Following up to this, we have some old code that is using the v2 URLs and working but we are sending over an api_key argument in addition to the X-Mashape-Key header. Is the api_key field deprecated with v2 and no longer needed? I noticed that the example code doesn’t reference it at all.

Rapid account: Klenmarket
klenmarket Commented 7 years ago

Yeah! Thanks a lot!
It helped )
It wasn’t clear that v1 is no longer supported

Rapid account: Animetrics
animetrics Commented 7 years ago

Hi,

The v1 system is deprecated so you need to use the /v2 URLs. Please try https://animetrics.p.mashape.com/v2/detect instead of https://animetrics.p.mashape.com/detect.

If you are still having problems, please email us directly at support@animetrics.com with your api and mashape keys.

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입