Skip to content

Commit ad564db

Browse files
Merge remote-tracking branch 'origin/dev' into v2.0.0
2 parents 10217b1 + 5f6a0e1 commit ad564db

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/GettingRawResponse.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,22 @@ Refer [this documentation](../CreatingClientInstance.md) for initializing the cl
1111
To get the raw response set the responseType of a request to ResponseType.RAW.
1212

1313
```typescript
14-
const rawResponse = client
14+
const rawResponse = await client
1515
.api("/me")
1616
.select("displayName")
1717
.responseType(ResponseType.RAW)
1818
.get();
1919
console.log(rawResponse);
2020
```
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

Comments
 (0)