DRIVER_PREFIX
DRIVER_PREFIX = 'sdp_driver_'
Determines the service to create links to upload to/download from a drive
getDownloadResponse(\SDP_Link $link, \Pluf_Http_Request $request) : \Pluf_Http_Response
Creats a permanent redirect (code 301) response with an URL as the following pattern:
{home}/api/v2/cactus/files/{jwt}/content
The parameter 'home' will be fetched from drive of the asset which is related to the given link. The parameter 'jwt' is a JSON Web Token which is contain at least the following information:
Note: The key and algorithm to encode/decode the JWT should be determined in the meta information of the drive which is host of the asset.
The information to create link should be placed in the meta. All other needed information should be given from request.
\SDP_Link | $link | |
\Pluf_Http_Request | $request |