greg-4
April 12, 2018, 6:51pm
1
Hello
We are trying to write a single way to convert excel, ppt and word documents to pdf. Aspose.Cloud.Cells python sdk clearly uses OAuth2 to handle the authentication flow via a Bearer token. Can we use the same pattern for Slides?
# coding: utf-8
"""
<copyright company="Aspose" file="AuthUtilpy.cs">
Copyright (c) 2023 Aspose.Cells Cloud
</copyright>
<summary>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
This file has been truncated. show original
Thanks,
Greg
@greg-4
Thank you for contacting Aspose Support.
All our REST APIs (Aspose.Words, Aspose.Cells, Aspose.Slides etc.) support OAuth 2.0 authentication.
Can we use the same pattern for Slides?
Yes.
@greg-4
Just as an update, please note, now latest Aspose Cloud APIs are using JSON Web Token(JWT) for the request authentication. Please let us know if you have any question or concern in this regard.
curl -X POST "https://api.aspose.cloud/connect/token"
-d "grant_type=client_credentials&client_id=xxxxx-xxxx-xxxx-xxxx-xxxxxxxx&client_secret=xxxxxxxxxxxxxxxxxx"
-H "Content-Type: application/x-www-form-urlencoded"
-H "Accept: application/json"