Free Support Forum - aspose.cloud

How to authenticate (URL Signing)

Hello,

I have the same issue which Mr. Patrick_daly posted.
https://forum.aspose.cloud/t/sign-aspose-cloud-api-request-url-for-authentication/1629

I’m trying to use with your Web-API “https://apireference.aspose.cloud/storage” via Integromat (iPaaS) .
So, in this case, I can’t solve this issue using your SDK.
The signature strings I generated is about 2 times longer than your signature you described. I would appreciate if you could give some advises to me.

[ HMAC-SHA1 algorithm ]

: https://api.aspose.com/1.1/storage/folder/test_folder?appSID=c821f123-1a8b-4b97-925a-9d69a6b2fcd8 *your sample

: 23e9d89a967a5f18142221fa8f7cbcd0 *your sample

@MKIUSA

Please note API Version 1.1 is obsolete now. You need to use API Version 3.0. Latest version uses JSON Web Token(JWT) for API request authentication. Please check sample cURL example for generating authentication token and authenticating a API request to convert Excel to PDF. All new SDKs of Aspose.Cells Cloud use API Version 3.0 and include the JWT authentication. Please let us know if you still face any issue in this regard.

// First get Access Token
// Get App Key and App SID from https://dashboard.aspose.cloud/
curl -X POST "https://api.aspose.cloud/connect/token" 
-d "grant_type=client_credentials&client_id=xxxxx-xxxx-xxxxx-xxxxx-xxxxxxxxxx&client_secret=xxxxxxxxxxxxxxxxxxxxxxxxxxx" 
-H "Content-Type: application/x-www-form-urlencoded" 
-H "Accept: application/json"

//Convert Excel to PDF
curl -X POST "https://api.aspose.cloud/v3.0/cells/statistics.xlsx/SaveAs?newfilename=Temp/Test_Cells.pdf&isAutoFitRows=true&folder=Temp"
-H "accept: application/json" 
-H "authorization: Bearer [Access_Token]" 
-H "Content-Type: application/json" 
-d "{ "SaveFormat": "pdf"}"