Skip to content

Instantly share code, notes, and snippets.

@kypflug
Created May 31, 2016 15:03
Show Gist options
  • Save kypflug/78dfea1179ead0889f2b02be01ea2b83 to your computer and use it in GitHub Desktop.
Save kypflug/78dfea1179ead0889f2b02be01ea2b83 to your computer and use it in GitHub Desktop.
request.post({
'url': 'https://api.projectoxford.ai/face/v1.0/facelists/' + your_face_api_list + '/persistedFaces',
'headers': {
'Content-Type': 'application/octet-stream',
'Ocp-Apim-Subscription-Key': your_secret_key_here
},
'body': req.body
}, function(error, response, body) {
//add the newly created face_id to the user document
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment