Package no.digipost.api.client.inbox
Interface InboxApi
- All Known Implementing Classes:
ApiServiceImpl
public interface InboxApi
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteInboxDocument
(InboxDocument inboxDocument) Delets the given document from the serverGet documents from the inbox for the organisation represented by senderId.getInboxDocumentContentStream
(InboxDocument inboxDocument) Get the content of a document as a stream.
-
Method Details
-
getInbox
Get documents from the inbox for the organisation represented by senderId.- Parameters:
senderId
- Either an organisation that you operate on behalf of or your brokerIdoffset
- Number of documents to skip. For paginationlimit
- Maximum number of documents to retrieve (max 1000)- Returns:
- Inbox element with the n=limit first documents
-
getInboxDocumentContentStream
Get the content of a document as a stream. The content is streamed from the server so remember to close the stream to prevent connection leaks.- Parameters:
inboxDocument
- The document to get content for- Returns:
- Entire content of the document as a stream
-
deleteInboxDocument
Delets the given document from the server- Parameters:
inboxDocument
- The document to delete
-