Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions sdk/datashare/arm-datashare/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install @azure/arm-datashare

### How to use

#### nodejs - Authentication, client creation and get accounts as an example written in TypeScript.
#### nodejs - Authentication, client creation and listBySubscription accounts as an example written in TypeScript.

##### Install @azure/ms-rest-nodeauth

Expand All @@ -35,9 +35,8 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
const client = new DataShareManagementClient(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const accountName = "testaccountName";
client.accounts.get(resourceGroupName, accountName).then((result) => {
const skipToken = "testskipToken";
client.accounts.listBySubscription(skipToken).then((result) => {
console.log("The result is:");
console.log(result);
});
Expand All @@ -46,7 +45,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
});
```

#### browser - Authentication, client creation and get accounts as an example written in JavaScript.
#### browser - Authentication, client creation and listBySubscription accounts as an example written in JavaScript.

##### Install @azure/ms-rest-browserauth

Expand Down Expand Up @@ -80,9 +79,8 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
authManager.login();
}
const client = new Azure.ArmDatashare.DataShareManagementClient(res.creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const accountName = "testaccountName";
client.accounts.get(resourceGroupName, accountName).then((result) => {
const skipToken = "testskipToken";
client.accounts.listBySubscription(skipToken).then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
Expand Down
Loading