Skip to content
Merged
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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ Typings (.d.ts) are now distributed with the api, so intellisense and compile su

### Create a connection
```javascript
var vsts = require('vso-node-api');
let vsts = require('vso-node-api');

// your collection url
var collectionUrl = "https://fabrikam.visualstudio.com/defaultcollection";
let collectionUrl = "https://fabrikam.visualstudio.com/defaultcollection";

// ideally from config
let token: string = "cbdeb34vzyuk5l4gxc4qfczn3lko3avfkfqyb47etahq6axpcqha";

let authHandler = vm.getPersonalAccessTokenHandler(token);
var connect = new vsts.WebApi(collectionUrl, creds);
let authHandler = vsts.getPersonalAccessTokenHandler(token);
let connect = new vsts.WebApi(collectionUrl, authHandler);
```

### Get an instance of a client
Expand Down