Difference between revisions of "Slack API"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
  
  
=== Invite user to a [[Workspace]] ===
+
== Invite user to a [[Workspace]] ==
 
* https://api.slack.com/admins/workspaces#inviting
 
* https://api.slack.com/admins/workspaces#inviting
 
* <code>admin.users.invite</code>: https://api.slack.com/methods/admin.users.invite
 
* <code>admin.users.invite</code>: https://api.slack.com/methods/admin.users.invite
 
  [[curl -F]] token=[[xoxp]]-... -F team_id=T1234 -F [[channel_ids]]=C1234 [email protected] https://slack.com/api/admin.users.invite
 
  [[curl -F]] token=[[xoxp]]-... -F team_id=T1234 -F [[channel_ids]]=C1234 [email protected] https://slack.com/api/admin.users.invite
:[[channel_ids]]
+
:<code>[[channel_ids]]</code>
:[[team_id]]
+
:<code>[[team_id]]</code>
  
 
<code>[[curl -d]] "token=[[xoxb]]-not-a-real-token-this-will-not-work" https://slack.com/api/auth.test</code>
 
<code>[[curl -d]] "token=[[xoxb]]-not-a-real-token-this-will-not-work" https://slack.com/api/auth.test</code>

Revision as of 19:08, 7 October 2021

Advertising: