diff --git a/README.md b/README.md index 11e359d..8e8e9b0 100644 --- a/README.md +++ b/README.md @@ -24,13 +24,13 @@ This is a very simple example. This creates a remote client and retrieves the de import { RemoteClient } from 'mygekko-client-library'; const client = new RemoteClient({ - username: 'test@test.com', - gekkoId: 'XXXX-XXXX-XXXX-XXXX', - apiKey: 'damnSecure', + username: '', + gekkoId: '', + apiKey: '', }); try { - const blinds = client.blinds.getAll(); + const blinds = client.blinds.getItems(); console.log(blinds); await client.blinds.setPosition('item0', 75); const blindsTrends = client.blinds.getTrends( @@ -50,13 +50,13 @@ And this creates a local client and retrieves the details of all blinds: import { LocalClient } from 'mygekko-client-library'; const client = new LocalClient({ - ip: '127.0.1', - username: 'user', - password: 'damnSecure', + ip: '', + username: '', + password: '', }); try { - const blinds = client.blinds.getAll(); + const blinds = client.blinds.getItems(); console.log(blinds); await client.blinds.setPosition('item0', 75); const blindsTrends = client.blinds.getTrends( diff --git a/test/client/client.test.ts b/test/client/client.test.ts index 73915be..acc368c 100644 --- a/test/client/client.test.ts +++ b/test/client/client.test.ts @@ -10,7 +10,7 @@ test('remote client', async () => { /* try { - const blinds = client.blinds.getAll(); + const blinds = client.blinds.getItems(); console.error(blinds); await client.blinds.setPosition("item0", 75); } catch (e) { @@ -30,7 +30,7 @@ test('local client', async () => { /* try { - const blinds = client.blinds.getAll(); + const blinds = client.blinds.getItems(); console.error(blinds); await client.blinds.setPosition("item0", 75); } catch (e) {