User to get info on
async
(params, auths) => {
}
//See the API docs here: https://api.slack.com/methods/users.info
const data = {
user: params.user,
include_locale: params.include_locale || false,
}
const config = {
url: `https://slack.com/api/users.info`,
headers: {
Authorization: `Bearer ${auths.slack.oauth_access_token}`,
"Content-Type": "application/x-www-form-urlencoded",
},
params: data
}
return await require("@pipedreamhq/platform").axios(this, config)