Skip to content

Commit

Permalink
add findByReferenceId in readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Reindert Vetter committed Sep 23, 2019
1 parent 64de874 commit ae7b572
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,15 @@ echo $myParcelCollection
->getLinkOfLabels();
```

If you want to download a label at a later time, you can also use the following to fill the collection:
```
$collection = MyParcelCollection::findByReferenceId('999999', 'xxxxxx');
$collection
->setPdfOfLabels()
->downloadPdfOfLabels();
```
Instead of `findByReferenceId()` you can also use `findManyByReferenceId()`, `find()` or `findMany()`.

More information: https://myparcelnl.github.io/api/#6_F

## List of classes and their methods
Expand Down

0 comments on commit ae7b572

Please sign in to comment.