getDocument

Task<DocumentgetDocument(@NonNull() String documentId)

Get the document with the given unique identifier.

Return

A document instance representing all the document's metadata.

Parameters

documentId

The unique identifier of the document.

Task<DocumentgetDocument(@NonNull() Uri documentUri)

Get the document with the given unique identifier. Please note that this method may use a slightly corrected URI from which it gets the document (e.g. if the URI's host does not conform to the base URL of the Gini API). Therefore it is not possibly to use this method to get a document from an arbitrary URI.

Return

A document instance representing all the document's metadata.

Parameters

documentUri

The URI of the document.