async
(params, auths) => {
}
//See the API docs here: https://api.slack.com/methods/users.profile.get
const data = {
include_labels: params.include_labels || false,
user: params.user,
}
const config = {
url: `https://slack.com/api/users.profile.get`,
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)