Channel to fetch history for.
async
(params, auths) => {
}
//See the API docs: https://api.slack.com/methods/channels.history
var currtime = Date.now();
return await require("@pipedreamhq/platform").axios(this, {
method: "get",
url: `https://slack.com/api/channels.history`,
headers: {
Authorization: `Bearer ${auths.slack.oauth_access_token}`,
"Content-Type": "application/json"
},
params:{
channel: params.channel,
count: params.count || 100,
inclusive: params.inclusive || false,
latest: params.latest || currtime,
oldest: params.oldest || 0,
unreads: params.unreads || false
}
});