Add team integration logs API
Add support for https://api.slack.com/methods/team.integrationLogs
Add unittest to check it works as expected
Also ran make pr-prep to check it's ready for review
@naormatania
When I tried it, I came across strange behavior.
Slack documentation says that the service_id field is string, but actual response's one is not string but int... So slack-go/slack could not decode.
I'll confirm Slack support.
@kanata2 has slack support answered about this issue ?
Sorry for delay. According to support, this is documentation's mistake.
@kanata2 it seems like slack updated their documentation that service_id can be both int or string.
I changed PR to handle both cases. let me know what you think. thanks !
@naormatania
I confirmed support again.
According to support's response, the type of service_id is only integer,
so we do not seem to need to consider the string type. :sob:
Thanks for the help @kanata2 ! I changed it to int now
@naormatania
thanks!
I found a new undocumented behavior...
It seems that the user_id can be 0 (= a number) like following example.
{
"user_id": 0,
"user_name": "slack",
"date": "1595673313",
"change_type": "disabled",
"reason": "channel_archive",
"service_id": 123456789,
"service_type": "Incoming WebHooks",
"scope": "incoming-webhook"
}
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.
This PR was closed because it has been stalled for 10 days with no activity.