From 1d4b0cbac36863a236416e16b1d3424ace8b3f5b Mon Sep 17 00:00:00 2001 From: Matt Low Date: Sat, 13 Mar 2021 15:05:53 -0700 Subject: [PATCH] Add request logging --- src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.ts b/src/index.ts index f9874d4..6eaac46 100644 --- a/src/index.ts +++ b/src/index.ts @@ -72,6 +72,10 @@ async function initRingCentralSDK() { platform.on(platform.events.refreshError, (err) => { console.error("Refresh error", err); }); + const client = sdk.client(); + client.on(client.events.beforeRequest, (request) => { + console.log(request.url); + }); await sdk.login({ username: process.env.RC_LOGIN_USERNAME, extension: process.env.RC_LOGIN_EXT,