From 935c0e3d267ece3c7ab900f893d6b6ad52518537 Mon Sep 17 00:00:00 2001 From: Frank Nedenskov Date: Wed, 17 Apr 2024 15:38:23 +0300 Subject: [PATCH] fix: update readme to include base url --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fcab18a..eac5bb0 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,8 @@ async run() { key: 'YOUR-API-KEY', secret: 'YOUR-SECRET', username: 'YOUR-TRUSTPILOT-B2B-USERNAME', - password: 'YOUR-TRUSTPILOT-B2B-PASSWORD' + password: 'YOUR-TRUSTPILOT-B2B-PASSWORD', + baseUrl: 'https://api.trustpilot.com' }); // For basic calls authentified by API key, use client.apiRequest @@ -49,7 +50,8 @@ async run() { key: 'YOUR-API-KEY', secret: 'YOUR-SECRET', username: 'YOUR-TRUSTPILOT-B2B-USERNAME', - password: 'YOUR-TRUSTPILOT-B2B-PASSWORD' + password: 'YOUR-TRUSTPILOT-B2B-PASSWORD', + baseUrl: 'https://api.trustpilot.com' }).authenticate(); try { @@ -72,7 +74,8 @@ async run() { const client = await new TrustpilotApi({ key: 'YOUR-API-KEY', secret: 'YOUR-SECRET', - grantType: 'client_credentials' + grantType: 'client_credentials', + baseUrl: 'https://api.trustpilot.com' }).authenticate(); // Use client