jolicode / slack-php-api

:hash: PHP Slack Client based on the official OpenAPI specification
https://jolicode.github.io/slack-php-api/
MIT License
222 stars 56 forks source link

SearchMessagesGetResponse200 is empty and we can't get the responses #59

Closed damienalexandre closed 3 years ago

damienalexandre commented 4 years ago

Using the searchMessage method is useless at the moment, the response is an empty object because Slack Definition is lacking the full schema.

$results = $client->searchMessages([
            'query' => 'Message with attachment',
            'count' => 1
        ]);

https://github.com/jolicode/slack-php-api/blob/master/generated/Model/SearchMessagesGetResponse200.php

damienalexandre commented 4 years ago

This bug is still relevant. But the good news is that SearchMessagesGetResponse200.php now extends \ArrayObject so the data can be accessed.

damienalexandre commented 3 years ago

Issue moved upstream: https://github.com/slackapi/slack-api-specs/issues/47