@Sebastian_Coraccio
Thanks for your feedback.
Yes, old GroupDocs Cloud apps are also depreciated. We are not fixing issues and making any improvement in these old Apps. We have plan to create new Apps based on new GroupDocs Cloud APIs in the future, but I am afraid we can not share any time line at the moment.
You can also render documents to HTML5/Image representation using Next Generation GroupDocs.Viewer for Cloud API and use result in your document viewing application.
However, you may try following code to signing the URL for old GropuDocs API, parse_url and hash_hmac are common PHP functions.
Please note it is PHP code and you can migrate it, if you are using different platform.
public function signUrl($url){
$urlParts = parse_url($url);
$pathAndQuery = $urlParts['path'].(empty($urlParts['query']) ? "" : "?".$urlParts['query']);
$signature = base64_encode(hash_hmac("sha1", encodeURI($pathAndQuery), $privateKey, true));
if(substr($signature, -1) == '='){
$signature = substr($signature, 0, - 1);
}
$url = $url . (empty($urlParts['query']) ? '?' : '&') . 'signature=' . APIClient::encodeURIComponent($signature);
return $url;
}
public static function encodeURI($url) {
$reserved = array(
'%2D'=>'-','%5F'=>'_','%2E'=>'.','%21'=>'!',
'%2A'=>'*', '%27'=>"'", '%28'=>'(', '%29'=>')'
);
$unescaped = array(
'%3B'=>';','%2C'=>',','%2F'=>'/','%3F'=>'?','%3A'=>':',
'%40'=>'@','%26'=>'&','%3D'=>'=',
//'%2B'=>'+',
'%24'=>'$', '%25'=>'%'
);
$score = array(
'%23'=>'#'
);
return strtr(rawurlencode($url), array_merge($reserved,$unescaped,$score));
}
public static function encodeURIComponent($str) {
$revert = array('%21'=>'!', '%2A'=>'*', '%27'=>"'", '%28'=>'(', '%29'=>')');
return strtr(rawurlencode($str), $revert);
}