Skip to content

Instantly share code, notes, and snippets.

@aspose-cloud aspose-cloud/Aspose-Cloud
Last active May 29, 2019

Embed
What would you like to do?
This Gist contains examples of aspose.cloud APIs for Blog Posts
Aspose-Cloud
// First get Access Token
// Get App Key and App SID from https://dashboard.aspose.cloud/
curl "https://api.aspose.cloud/oauth2/token"
-X POST
-d "grant_type=client_credentials&client_id=[APP_SID]&client_secret=[APP_KEY]"
-H "Content-Type: application/x-www-form-urlencoded"
-H "Accept: application/json"
// cURL example to upload file to Aspose Cloud Storage
curl "https://api.aspose.cloud/v1.1/storage/file?path=multilevellist.pdf"
-X PUT
-T C:/Temp/multilevellist.pdf
-H "Content-Type: multipart/form-data"
-H "Accept: application/json"
-H "Authorization: Bearer [ACCESS_TOKEN]"
// cURL example to convert PDF Document to Word
curl "https://api.aspose.cloud/v1.1/words/multilevellist.pdf/saveAs"
-X POST
-H "Content-Type: application/json"
-d '{"SaveFormat": "docx","FileName": "multilevellistapi.docx",}'
-H "Accept: application/json"
-H "Authorization: Bearer [ACCESS_TOKEN]"Aspose-Cloud
// First get JSON Web Token
// Get App Key and App SID from https://dashboard.aspose.cloud/
curl -v "https://api.aspose.cloud/connect/token" \
-X POST \
-d "grant_type=client_credentials&client_id=[APP_SID]&client_secret=[APP_KEY]" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json"
// cURL example to upload file to Aspose Cloud Storage
curl "https://api.aspose.cloud/v4.0/words/storage/file/sample.pptx"
-X PUT
-H "accept: application/json"
-H "Content-Type: multipart/form-data"
-T C:/sample.pptx
-H "authorization: Bearer [ACCESS_TOKEN]"
// cURL example to convert PDF Document to Word
curl "https://api.aspose.cloud/v4.0/words/multilevellist.pdf/saveAs"
-X PUT
-H "Content-Type: application/json"
-d "{"SaveFormat": "docx","FileName": "multilevellistapi.docx",}"
-H "Accept: application/json"
-H "authorization: Bearer [ACCESS_TOKEN]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.