HubSpot / slack-client

An asynchronous HTTP client for Slack's web API
Apache License 2.0
114 stars 53 forks source link

Support `"file_access": "access_denied"` in SlackFile model #318

Closed zmarushchak-hs closed 1 year ago

zmarushchak-hs commented 1 year ago

Currently we fail to parse Slack response like below. This PR adds custom deserialiser to handle responses like this.

{
      "id" : "F05RFJX6KL4",
      "file_access" : "access_denied",
      "created" : 0,
      "timestamp" : 0,
      "user" : "U01K1BQFK3R",
      "filetype" : "png"
    }