JSON Web Token Authorization URL issue of Aspose.Imaging Cloud Swagger API Explorer

https://apireference.aspose.cloud/imaging/#/Resize/CreateResizedImage

If you click the padlock icon and try to enter your client secret and client id, it returns an error due the base url being incorect.

I don’t think this is right: “https://api.aspose.cloud/v3.0/imaging/swagger/connect/token”.

Utlimatley I am trying to calls these endpoints through postman and I get errors but can’t test with swagger so can’t pinpoint where I am going wrong. The API seems so simple but I am missing something or the error message from the response is misleading by telling me it is auth related.

Not too sure.

@Manish26

We are sorry for the inconvenience. We will fix the swagger authorization issue(IMAGINGCLOUD-685) of Aspose.Imaging Cloud Web API Explorer soon. Meanwhile, you can use the following cURL command to get an Access token via cURL or postman. You can also check documentation for API usage details. And please feel free to ask any questions or concerns.

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

@Manish26

Please note we have fixed the authorization issue(IMAGINGCLOUD-685) in Aspsoe.Imaging Cloud Swagger Web API explorer. Now, you can explore Aspose.Imaging REST APIs in your browser.