From b03a3ebf7507aa453ff22e606ae220795f80a2b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20=C5=BBydek?= Date: Tue, 10 Dec 2024 10:52:56 +0100 Subject: [PATCH] docs: rename mentions of `getVisitorHistory` to `getVisits` --- readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 3f63531..0ba47b0 100644 --- a/readme.md +++ b/readme.md @@ -83,7 +83,7 @@ const client = new FingerprintJsServerApiClient({ }) // Get visit history of a specific visitor -client.getVisitorHistory('').then((visitorHistory) => { +client.getVisits('').then((visitorHistory) => { console.log(visitorHistory) }) @@ -126,9 +126,9 @@ try { } } -// Handling getVisitorHistory errors +// Handling getVisits errors try { - const visitorHistory = await client.getVisitorHistory(visitorId, { + const visitorHistory = await client.getVisits(visitorId, { limit: 10, }) console.log(JSON.stringify(visitorHistory, null, 2))