Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 535 Bytes

File metadata and controls

20 lines (14 loc) · 535 Bytes

Getting Raw Response

Steps for getting the raw response [i.e Response Object]

Initialize the Client

Refer this documentation for initializing the client.

Getting Raw Response by setting ResponseType

To get the raw response set the responseType of a request to ResponseType.RAW.

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