GetDocumentQuery
class GetDocumentQuery extends AbstractQuery
Builds URL for GetDocument REST-API calls.
Also holds the response after being executed.
Methods
__construct(string $userName, string $resourceHash, string $fileName, string $type = Config\DocumentType::FILE)
The query constructor builds the url and saves it into the url property.
$this
execute(Client $httpClient)
Execute a prepared query.
string
bibliography(string $bibliographyStyleName, string $lang = 'en-US', string $bibliographyStyle = '')
No description
from AbstractQuery
StreamInterface
getStream()
No description
Details
at line 54
__construct(string $userName, string $resourceHash, string $fileName, string $type = Config\DocumentType::FILE)
The query constructor builds the url and saves it into the url property.
GET /users/[username]/posts/[resourcehash]/documents/[fileName]
at line 73
$this
execute(Client $httpClient)
Execute a prepared query.