Skip to content

Instantly share code, notes, and snippets.

Ken Domen kendomen

Block or report user

Report or block kendomen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View SlackAuditLogs.cs
private async Task GetAuditLogs(String nextCursor)
{
var client = new RestClient("https://api.slack.com/audit/v1/logs");
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Authorization", "Bearer " + SlackConstants.ProdUserToken);
request.AddParameter("limit", "1000", ParameterType.QueryString);
request.AddParameter("oldest", 1577836800, ParameterType.QueryString);
if (null != nextCursor)
request.AddParameter("cursor", nextCursor, ParameterType.QueryString);
View gist:7dd5d9096312d4d06425330a3c9b9f4b
import { App } from '@slack/bolt';
import { WebAPICallResult } from '@slack/web-api';
const {store} = require('./store');
require('dotenv').config();
const botToken = process.env.SLACK_BOT_TOKEN
const signSecret = process.env.SLACK_SIGNING_SECRET
You can’t perform that action at this time.