Open GalNakash-RecoLabs opened 1 year ago
Thanks for reporting. You can call Audit Log APIs correctly by setting Base URL as follows.
slack.New(token, slack.OptionAPIURL("https://slack.com/")
However, it seems inconvenient that only one endpoint can be set per Slack client, so I will consider some other way.
What happened
The API GetAuditLogs sends a request to https://slack.com/api/
Expected behavior
The audit logs API is accessible only via api.slack.com
Steps to reproduce
reproducible code
_, nextCursor, err = slackClient.GetAuditLogs(slack.AuditLogParameters{ Limit: maxAuditLogMessages, Oldest: oldest, Latest: latest, Cursor: nextCursor, Action: eventType, })
manifest.yaml
Versions