Skip to content

API_NOT_FOUND #8

@MastaBaba

Description

@MastaBaba

Using the example I have this:

	include_once 'face/FppClient.php';
	
	use Fpp\FppClient;
	
	$host = 'https://api-us.faceplusplus.com/facepp/v3/detect';
	$apiKey = '{{key}}';
	$apiSecret = '{{secret}}';
	
	$client = new FppClient($apiKey, $apiSecret, $host);
	
	$data = array(
	    'image_url' => "{{photo}}",
	    'return_landmark' => '2',
	    'return_attributes' => 'age,headpose,gender'
	);
	
	$resp = $client->detectFace($data);
	var_dump($resp);

The response is this:

object(Fpp\Response)#5 (3) { ["headers"]=> NULL ["body"]=> array(1) { ["error_message"]=> string(13) "API_NOT_FOUND" } ["status"]=> int(404) }

How to get this to work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions