We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 10217b1 + 5f6a0e1 commit ad564dbCopy full SHA for ad564db
docs/GettingRawResponse.md
@@ -11,10 +11,22 @@ Refer [this documentation](../CreatingClientInstance.md) for initializing the cl
11
To get the raw response set the responseType of a request to ResponseType.RAW.
12
13
```typescript
14
-const rawResponse = client
+const rawResponse = await client
15
.api("/me")
16
.select("displayName")
17
.responseType(ResponseType.RAW)
18
.get();
19
console.log(rawResponse);
20
```
21
+
22
+Using callback method,
23
24
+```typescript
25
+client
26
+ .api("/me")
27
+ .select("displayName")
28
+ .responseType(ResponseType.RAW)
29
+ .get((error, rawResponse) => {
30
+ console.log(rawResponse)
31
+ });
32
+```
0 commit comments