From a619fbb239839e5d14ed684080a8fab9a210b9c2 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Mon, 18 Nov 2019 16:26:01 +0000 Subject: [PATCH] fix(readme): show how to instantiate account --- readme.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/readme.md b/readme.md index d777725..28f34f8 100644 --- a/readme.md +++ b/readme.md @@ -22,6 +22,15 @@ Use TypeScript for best in class intellisense. letterxpress implements the LXP API documented here: [LXP API Documentation](https://www.letterxpress.de/briefe-uebertragen/api) +```typescript +import * as letterxpress from '@mojoio/letterxpress' + +const account = new letterxpress.LetterXpressAccount({ + email: 'myemail@example.com', + apiToken: 'abcdefghijklmnop1234567890' +}) +``` + ## Contribution We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can [contribute one time](https://lossless.link/contribute-onetime) or [contribute monthly](https://lossless.link/contribute). :)