This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3241 from Azure/restapi_auto_cognitiveservices/da…
…ta-plane/Face [AutoPR] cognitiveservices/data-plane/Face
- Loading branch information
Showing
66 changed files
with
14,097 additions
and
4,275 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
uid: azure-cognitiveservices-face | ||
summary: *content | ||
|
||
--- | ||
# Microsoft Azure SDK for Node.js - FaceClient | ||
This project provides a Node.js package for accessing Azure. Right now it supports: | ||
- **Node.js version 6.x.x or higher** | ||
|
||
## Features | ||
|
||
|
||
## How to Install | ||
|
||
```bash | ||
npm install azure-cognitiveservices-face | ||
``` | ||
|
||
## How to use | ||
|
||
### Authentication, client creation and list personGroupPerson as an example. | ||
|
||
```javascript | ||
const msRest = require("ms-rest"); | ||
const FaceClient = require("azure-cognitiveservices-face"); | ||
const token = "<access_token>"; | ||
const creds = new msRest.TokenCredentials(token); | ||
const subscriptionId = "<Subscription_Id>"; | ||
const client = new FaceClient(creds, subscriptionId); | ||
const personGroupId = "testpersonGroupId"; | ||
const start = "teststart"; | ||
const top = 1; | ||
client.personGroupPerson.list(personGroupId, start, top).then((result) => { | ||
console.log("The result is:"); | ||
console.log(result); | ||
}).catch((err) => { | ||
console.log('An error occurred:'); | ||
console.dir(err, {depth: null, colors: true}); | ||
}); | ||
|
||
## Related projects | ||
|
||
- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node) |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,6 @@ | |
|
||
'use strict'; | ||
|
||
const models = require('./index'); | ||
|
||
/** | ||
* Error information returned by the API | ||
* | ||
|
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
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
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
Oops, something went wrong.