Created
October 4, 2018 02:15
-
-
Save vmussak/909a276e3c68f852b8f6df3d07064233 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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