From d97d758755d3f9ee685ec26b3851e705b056eb6b Mon Sep 17 00:00:00 2001 From: Sean Fisher Date: Sat, 3 Dec 2016 08:48:21 -0600 Subject: [PATCH] Fix incorrect variable name in README.me --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a2698e9d..0f464296 100644 --- a/README.md +++ b/README.md @@ -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