Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ComradeTurtle committed Feb 10, 2022
1 parent b7af606 commit 46784fe
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const easymail = new(require("courier-api").easymail);
const elta = new(require("courier-api").elta);
const acs = new(require("courier-api").acs);
const dhl = new(require("courier-api").dhl);
const speedpak = new(require("courier-api").speedpak);


(async () => {
Expand All @@ -45,11 +46,15 @@ const dhl = new(require("courier-api").dhl);
await dhl.get('TRACK_ID')
.then((r) => console.log(r))
.catch((e) => console.error(e));

await speedpak.get('TRACK_ID')
.then((r) => console.log(r))
.catch((e) => console.error(e));
});
```
or
```js
const { geniki, speedex, elta, acs, easymail, dhl } = require('courier-api');
const { geniki, speedex, elta, acs, easymail, dhl, speedpak } = require('courier-api');
(async () => {
await new elta().get('TRACK_ID')
.then((result) => console.log(result))
Expand All @@ -74,5 +79,9 @@ const { geniki, speedex, elta, acs, easymail, dhl } = require('courier-api');
await new dhl().get('TRACK_ID')
.then((result) => console.log(result))
.catch((error) => console.error(error));

await new speedpak().get('TRACK_ID')
.then((result) => console.log(result))
.catch((error) => console.error(error));
})();
```

0 comments on commit 46784fe

Please sign in to comment.