I'm trying to convert a HTTP request (which I've never dealt with before) into a cURL and Powershell command, but I'm not getting anywhere....can someone help me fill in the blanks?
POST /api/users.profile.set
Host: slack.com
Content-type: application/json; charset=utf-8
Authorization: bearer_token
{
"profile": {
"status_text": "Eating some french fries from the frituur",
"status_emoji": ":fries:"
}
}
curl 'https://slack.com/api/users.profile.set' `
--header 'Authorization: bearer_token' `
--header 'Content-Type: application/json' `
--data-raw "{
\"profile\": {
\"status_text\": \"On Lunch\",
\"status_emoji\": \":hamburger:\"
}
}"
and
Invoke-WebRequest -Headers @{"Authorization" = "bearer_token"} `
-Method POST `
-Uri https://slack.com/api/users.profile.set `
-ContentType application/json