Skip to content

Instantly share code, notes, and snippets.

@vmussak
Created October 4, 2018 02:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vmussak/43b23f4904293ddb8e0baa437d33b8da to your computer and use it in GitHub Desktop.
Save vmussak/43b23f4904293ddb8e0baa437d33b8da to your computer and use it in GitHub Desktop.
async function criarLargeFaceList() {
let config = {
method: 'PUT',
uri: `${faceApi}/largefacelists/minha-lista`,
headers: {
'Ocp-Apim-Subscription-Key': faceApiKey
},
json: true,
body: {
name: 'minha-lista',
userData: "Minha lista de faces"
}
};
let response = await request(config);
return response;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment