Steps for getting the raw response [i.e Response Object]
Refer this documentation for initializing the client.
To get the raw response set the responseType of a request to ResponseType.RAW.
const rawResponse = await client
.api("/me")
.select("displayName")
.responseType(ResponseType.RAW)
.get();
console.log(rawResponse);
Using callback method,
client
.api("/me")
.select("displayName")
.responseType(ResponseType.RAW)
.get((error, rawResponse) => {
console.log(rawResponse);
});