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
import"isomorphic-fetch"; // or import the fetch polyfill you installed
@@ -84,20 +86,20 @@ In case your browser doesn't have support for [Fetch](https://developer.mozilla.
84
86
```
85
87
86
88
## Getting started
89
+
87
90
### 1. Register your application
88
91
89
-
To call Microsoft Graph, your app must acquire an access token from the Microsoft identity platform.
90
-
Learn more about this -
91
-
-[Authentication and authorization basics for Microsoft Graph](https://docs.microsoft.com/en-us/graph/auth/auth-concepts)
92
-
-[Register your app with the Microsoft identity platform](https://docs.microsoft.com/en-us/graph/auth/auth-concepts)
92
+
To call Microsoft Graph, your app must acquire an access token from the Microsoft identity platform. Learn more about this -
93
+
94
+
-[Authentication and authorization basics for Microsoft Graph](https://docs.microsoft.com/en-us/graph/auth/auth-concepts)
95
+
-[Register your app with the Microsoft identity platform](https://docs.microsoft.com/en-us/graph/auth/auth-concepts)
93
96
94
97
### 2. Create a Client Instance
95
98
96
99
The Microsoft Graph client is designed to make it simple to make calls to Microsoft Graph. You can use a single client instance for the lifetime of the application.
97
100
98
101
For information on how to create a client instance, see [Creating Client Instance](./docs/CreatingClientInstance.md)
99
102
100
-
101
103
### 3. Make requests to the graph
102
104
103
105
Once you have authentication setup and an instance of Client, you can begin to make calls to the service. All requests should start with `client.api(path)` and end with an [action](./docs/Actions.md).
@@ -151,16 +153,16 @@ Please see the [contributing guidelines](CONTRIBUTING.md).
- The Microsoft Graph TypeScript definitions enable editors to provide intellisense on Microsoft Graph objects including users, messages, and groups.
157
-
-[@microsoft/microsoft-graph-types](https://www.npmjs.com/package/@microsoft/microsoft-graph-types) or [@types/microsoft-graph](https://www.npmjs.com/package/@types/microsoft-graph)
-[Build React Native apps with Microsoft Graph](https://docs.microsoft.com/en-us/graph/tutorials/react-native)
160
-
-[Build Angular single-page apps with Microsoft Graph](https://github.com/microsoftgraph/msgraph-training-angularspa)
161
-
-[Build Node.js Express apps with Microsoft Graph](https://github.com/microsoftgraph/msgraph-training-nodeexpressapp)
162
-
-[Microsoft Graph Toolkit: UI Components and Authentication Providers for Microsoft Graph](https://docs.microsoft.com/en-us/graph/toolkit/overview)
163
-
-[Office Dev Center](http://dev.office.com/)
158
+
-The Microsoft Graph TypeScript definitions enable editors to provide intellisense on Microsoft Graph objects including users, messages, and groups.
159
+
-[@microsoft/microsoft-graph-types](https://www.npmjs.com/package/@microsoft/microsoft-graph-types) or [@types/microsoft-graph](https://www.npmjs.com/package/@types/microsoft-graph)
* Signature to define the fetch request options for node environment
11
-
* @property {number} [follow] - Maximum redirect count. 0 to not follow redirect
12
-
* @property {number} [timeout] - Request/Response timeout in milliseconds, it resets on redirect. 0 to disable (OS limit applies)
13
-
* @property {number} [compress] - Support gzip/deflate content encoding. false to disable
14
-
* @property {number} [size] - Maximum response body size in bytes. 0 to disable
15
-
* @property {any} [agent] - HTTP(S).Agent instance, allows custom proxy, certificate, lookup, family etc.
11
+
* @property {number} [follow] - node-fetch option: maximum redirect count. 0 to not follow redirect
12
+
* @property {number} [compress] - node-fetch option: support gzip/deflate content encoding. false to disable
13
+
* @property {number} [size] - node-fetch option: maximum response body size in bytes. 0 to disable
14
+
* @property {any} [agent] - node-fetch option: HTTP(S).Agent instance, allows custom proxy, certificate, lookup, family etc.
15
+
* @property {number} [highWaterMark] - node-fetch option: maximum number of bytes to store in the internal buffer before ceasing to read from the underlying resource.
16
+
* @property {boolean} [insecureHTTPParser] - node-fetch option: use an insecure HTTP parser that accepts invalid HTTP headers when `true`.
0 commit comments