How can I view the files with the GroupDocs.Viewer Cloud PHP SDK?

Hello,

Im trying to get to know the groupdocs viewer cloud solution.

I’ve used the cURL version to convert a doc file to html, and was able to view it by downloading through my dashboard/storage…

But how can I view the files with the PHP sdk? Or is this only available with asp/.net?

Thanks and best regards,
Krisitian Martinsen


This Topic is created by tilal.ahmad using Email to Topic tool.

@kris,

Please check the GroupDocs.Viewer Cloud SDK for PHP and the documentation for sample code. Hopefully, it will help you accomplish the task.

I looked at your suggestion, but I had already been through it…

So as far as I see the PHP sdk does not set up any gui viewer…

I’m also at a loss with your cURL and PHP sdk examples related to uploading a file,
the curl is not posting any file,
and the sdk is not authorizing

curl -X POST "https://api.groupdocs.cloud/v2.0/viewer/storage/file/viewerdocs%2Fone-page2.docx?storageName#MyStorage" -H "accept: application/json" -H "authorization: Bearer [Access Token]"


This Topic is created by tilal.ahmad using Email to Topic tool.

@kris

Please check the sample cURL command to upload a file to cloud storage(default storage). Can you please elaborate on what issue you are facing with the PHP SDK? We will look into it and guide you accordingly.

curl -X PUT "https://api.groupdocs.cloud/v2.0/viewer/storage/file/Test.docx" 
-H "accept: application/json" 
-H "authorization: Bearer eyJhbGciOiJSUzI1NiIsInR...60R9GOuVnXTw" 
-H "Content-Type: multipart/form-data" 
-H "x-aspose-client: Containerize.Swagger" 
-F "File"="@C:/Temp/Test.docx"
1 Like