From 1aae926780f016968b7e7c61318fcdda8fe89a91 Mon Sep 17 00:00:00 2001 From: Zac Bolick Date: Mon, 16 Jun 2025 12:35:27 -0700 Subject: [PATCH] Update README.md Update readme to reflect repo working with v1 api. Update example so that it calls the policies.getPolicies() rather than a method that no longer exists --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4841711..b14bab3 100755 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # Addigy API SDK for Node.JS -This package takes the Addigy public API and wraps it into a consistent promise-based interface. +This package takes the Addigy's v1 public API and wraps it into a consistent promise-based interface. :warning: Use this at your own risk. To error is human, to propogate error across all of prod via API is DevOps. @@ -30,7 +30,7 @@ const addigy = new Addigy({ From there, you can call any of the `addigy` package functions (all of which are Promise-based) using `await` or with `=>` notation: ```js -const policies = await addigy.getPolicies() +const policies = await addigy.policies.getPolicies() ``` The response will be a JSON object or array, like so: