PV API Service

<back to all web services

PrivateDocStorageStreamRequest

GET a previously requested file by it's token and extension. File must have already been requested, must not be outside of the bounds of the proper request time window, and must be requested by the person who made the original request, for this operation to succeed.

The following routes are available for this service:
PUT/DocStorage/Private
GET/DocStorage/Private/{Environment}/{ForceSecureTransfer}/{ForDownload}/{Token}/{NameForDownload}
GET/DocStorage/Private/{Environment}/{ForceSecureTransfer}/{ForDownload}/{Token}.{Extension}
PUT/DocStorage/Private/{Environment}/{Token}.{Extension}

To override the Content-type in your clients HTTP Accept Header, append ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/reply/PrivateDocStorageStreamRequest HTTP/1.1 
Host: api.practicevelocity.com 
Content-Type: application/xml
Content-Length: length

<PrivateDocStorageStreamRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DocStorage.External.DataModel">
  <Environment>String</Environment>
  <Extension>String</Extension>
  <ForDownload>false</ForDownload>
  <ForceSecureTransfer>false</ForceSecureTransfer>
  <NameForDownload>String</NameForDownload>
  <Token>00000000-0000-0000-0000-000000000000</Token>
</PrivateDocStorageStreamRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CustomHttpResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types" />