Free Support Forum - aspose.cloud

Php SDK; nothing seems to be returned from call


#1

I really appreciate all your help and quick responses, but I’m still struggling with the PHP examples

I’ve correctly created a configuration, and have 2 line example:

  $request = new Requests\GetSlidesDocumentPropertiesRequest("QBE IMCA Entry.pptx", null, null, null);
  print "GetSlidesDocumentPropertiesRequest<br>";
  var_dump($request);
  $response = $slidesApi->getSlidesDocumentProperties($request);
  print "Response<br>";
  var_dump($response);

Gives me the following output (with config->debug true)

GetSlidesDocumentPropertiesRequest
object(Aspose\Slides\Cloud\Sdk\Model\Requests\GetSlidesDocumentPropertiesRequest)#18 (4) {
  ["name"]=>string(19) "QBE IMCA Entry.pptx"
  ["password"]=>NULL
  ["folder"]=>NULL
  ["storage"]=>NULL
}

log:
GET: https://api.aspose.cloud/v3.0/slides/QBE%20IMCA%20Entry.pptx/documentproperties? 

GET: https://api.aspose.cloud/v3.0/slides/QBE%20IMCA%20Entry.pptx/documentproperties? 
x-aspose-client: php sdk
x-aspose-client-version: 19.6.0
Accept: application/json
Content-Type: application/json
Authorization: Bearer deleted-for-this-example
Body: 


log:
Response: 200 

Response: 200 
Date: Tue, 16 Jul 2019 22:10:16 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Server: Kestrel
Strict-Transport-Security: max-age=2592000
Body: {}
Response
object(Aspose\Slides\Cloud\Sdk\Model\DocumentProperties)#64 (1) {
  ["container":protected]=>
  array(4) {
    ["self_uri"]=>
    NULL
    ["alternate_links"]=>
    NULL
    [0]=>
    string(18) "DocumentProperties"
    ["list"]=>
    NULL
  }
}

If I put some debugging in SlidesApi.php around line 8290 (in function getSlidesDocumentPropertiesWithHttpInfo) I can see that if I dump the content, I’m getting the results back.
$content=string(3137) "{“list”:[{“name”:“Author”,“value”:“Ken Lubar”,“builtIn”:true,“selfUri”:{“href”:“https://api.aspose.cloud/v3.0/slides/QBE%20IMCA%20Entry.pptx/documentProperties/Author",“relation”:“self”}},{“name”:“Category”,“value”:"","builtIn”:true, … deleted the rest, but it’s there;

It looks like isn’t working
$deserializedContent = ObjectSerializer::deserialize($content, $returnType, []); (around line 8296)

What am I missing?


#2

@klubar,

Thanks for your query. We have reproduced the issue and investigating the issue against the ticket SLIDESCLOUD-719. We will share our findings with you asap.


#3

@klubar

Thanks for your patience. Please note your above reported issue SLIDESCLOUD-719 has been fixed. We have updated GitHub and Packagist repos, it should work now.


#4

So much happier today. Thanks!