Sign request with php API
Hello, I want to use the Cloudinary's backend SDKs to generate the authentication signature with the following function (as described in the documentation) :
\Cloudinary::api_sign_request($params_to_sign, $api_secret);
But the function doesn't exist in the php SDK (v2).
Which function should I use then ?
-
Hi Sebastien,
With the V2 of the PHP SDK, the function you are looking for is called `signParameters` and it resides in the `ApiUtils` class. Here is a link to it -
https://github.com/cloudinary/cloudinary_php/blob/a713bf18b8ec0cca3d3119550d87e8c14ff24faa/src/Api/Utils/ApiUtils.php#L275-L284If you have successfully installed the V2 PHP SDK using the steps noted here (https://cloudinary.com/documentation/php_integration#installation) and have loaded the necessary classes (Cloudinary\Api\ApiUtils;) you should be able to access it. Let me know if that works for you?
1
Post is closed for comments.
Comments
1 comment