Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
muthurathinam-m committed May 24, 2019
2 parents 10217b1 + 5f6a0e1 commit ad564db
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/GettingRawResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,22 @@ Refer [this documentation](../CreatingClientInstance.md) for initializing the cl
To get the raw response set the responseType of a request to ResponseType.RAW.

```typescript
const rawResponse = client
const rawResponse = await client
.api("/me")
.select("displayName")
.responseType(ResponseType.RAW)
.get();
console.log(rawResponse);
```

Using callback method,

```typescript
client
.api("/me")
.select("displayName")
.responseType(ResponseType.RAW)
.get((error, rawResponse) => {
console.log(rawResponse)
});
```

0 comments on commit ad564db

Please sign in to comment.