Skip to content

Instantly share code, notes, and snippets.

@vmussak
Created October 4, 2018 02:15
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/909a276e3c68f852b8f6df3d07064233 to your computer and use it in GitHub Desktop.
Save vmussak/909a276e3c68f852b8f6df3d07064233 to your computer and use it in GitHub Desktop.
async function uploadImagem(imageName) {
let config = {
method: 'POST',
uri: `${faceApi}/largefacelists/minha-lista/persistedfaces`,
headers: {
'Ocp-Apim-Subscription-Key': faceApiKey
},
json: true,
body: {
url: `${blobUrl}/${imageName}`
}
};
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