From 2e730f6ed5a0103d33d5c0445d1b8a0ed0881370 Mon Sep 17 00:00:00 2001 From: David Chouinard Date: Sun, 13 Mar 2022 13:20:42 -0700 Subject: [PATCH] Fix README usage example The README example is incorrectly missing the `new` keyword for instantiating the `PDLJS` class. Caused me a lot of headaches! --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 90c527d..162876e 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ First, create the PDLJS client: ```js import PDLJS from 'peopledatalabs'; -PDLJSClient = PDLJS({“apiKey”: “YOUR API KEY”}) +const PDLJSClient = new PDLJS({apiKey: "YOUR API KEY"}) ``` Then, send requests to any PDL API Endpoint: