Skip to content

Commit

Permalink
Merge pull request #170 from digipost/docs-get-document-status
Browse files Browse the repository at this point in the history
Add some docs for getDocumentStatus
  • Loading branch information
draperunner authored Oct 13, 2023
2 parents 57ad6df + 3435197 commit 0fd30ad
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/_v15_x/2_send.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,3 +298,17 @@ UserAccount userAccount = client.createOrActivateUserAccount(sender, user);
DigipostAddress digipostAddress = userAccount.getDigipostAddress();
EncryptionKey encryptionKey = userAccount.getEncryptionKey();
```


## Get Status of Document

After you have sent a message, you can get the _status_ of a document with `getDocumentStatus`.
The response includes basic information about the delivery, like the channel the document was delivered to, as well as
delivery times and more.

```java
DocumentStatus status = client.getDocumentStatus(senderId, documentUuid);

System.out.println("Status: " + status.status);
System.out.println("Channel: " + status.channel);
```

0 comments on commit 0fd30ad

Please sign in to comment.