Skip to content

Commit

Permalink
fix: update readme to include base url
Browse files Browse the repository at this point in the history
  • Loading branch information
tpfrne committed Apr 17, 2024
1 parent 15f8369 commit 935c0e3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit 935c0e3

Please sign in to comment.