You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -243,6 +243,16 @@ You can pass in additional request headers, either individually or in a dictiona
243
243
### .responseType()
244
244
To set a custom response type, use the `.responseType(string)` method. To see an example, check the [browser sample](samples/browser/index.html) that downloads an image and displays it in an `<img>` element.
245
245
246
+
## Running node samples
247
+
You can run and debug the node samples found under [./samples/node/node-sample.js](./samples/node/node-sample.js) by running the *Run node samples* configuration from the **Debug** (Ctrl + Shift + D) menu in Visual Studio Code. Alternately, you can run the node samples from the CLI by entering `node ./samples/node/node-sample.js` (assuming you are at the root of this repo). You'll need to rename the *secrets.example.json* file to *secrets.json* and add a valid access token to it. You can get an access token by doing the following:
248
+
1. Go to [Graph Explorer](https://developer.microsoft.com/en-us/graph/graph-explorer).
249
+
2. Login with the account you want to use to run the node samples.
250
+
3. Open the F12 dev tools.
251
+
4. Type `tokenPlease()` into the console to get an access token.
252
+
5. Copy the access token and put it into the *secrets.json* file and save the file.
253
+
254
+
We suggest that you become acquainted with these samples as they show some of the main use scenarios for this client library.
255
+
246
256
## Additional information
247
257
### Options in `MicrosoftGraph.Client.init()`
248
258
@@ -287,7 +297,7 @@ These steps are not required to use this library.
287
297
288
298
```npm pack``` bundles the npm module.
289
299
290
-
```npm test``` runs tests of the core library (URL parsing, mock responses, etc)
300
+
```npm test``` runs tests of the core library (URL parsing, mock responses, etc). You can also set breakpoints and run this from within Visual Studio Code by selecting the *Run core test* configuration from the Debug view.
291
301
292
302
```npm run test:types``` to run tests against the Graph API for users, groups, Excel, OneNote, etc.
293
303
@@ -339,3 +349,6 @@ Please see the [contributing guidelines](CONTRIBUTING.md).
339
349
Copyright (c) Microsoft Corporation. All rights reserved.
340
350
341
351
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
352
+
353
+
## Third Party Notices
354
+
See [Third Party Notices](https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/master/THIRD%20PARTY%20NOTICES) for information on the packages that are included in the [package.json](https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/master/package.json)
This file is based on or incorporates material from the projects listed below (Third Party OSS). The original copyright notice and the license under which Microsoft received such Third Party OSS, are set forth below. Such licenses and notices are provided for informational purposes only. Microsoft licenses the Third Party OSS to you under the licensing terms for the Microsoft product or service. Microsoft
2
+
reserves all other rights not expressly granted under this agreement, whether by implication, estoppel or otherwise.
3
+
4
+
superagent - 3.5.2
5
+
6
+
es6-promise - 4.1.0
7
+
8
+
Provided for Informational Purposes Only
9
+
10
+
MIT License
11
+
12
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
13
+
14
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
15
+
16
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0 commit comments