getDocument

public final Resource<Document> getDocument(String id)

Get the document with the given unique identifier.

Return

Resource with the Document instance representing all the document's metadata or information about the error

Parameters

id

The unique identifier of the document.


public final Resource<Document> getDocument(Uri uri)

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

Resource with the Document instance representing all the document's metadata or information about the error

Parameters

uri

The URI of the document.