Difference between revisions of "Curl -F"

From wikieduonline
Jump to navigation Jump to search
Line 8: Line 8:
 
   [[curl]] -F token=xoxp-... -F team_id=T1234 -F user_id=U1234 https://slack.com/api/admin.users.remove
 
   [[curl]] -F token=xoxp-... -F team_id=T1234 -F user_id=U1234 https://slack.com/api/admin.users.remove
  
 +
[[OAuth]]
 +
  curl -F code=1234 -F client_id=3336676.569200954261 -F client_secret=ABCDEFGH https://slack.com/api/oauth.v2.access
  
 
== See also ==
 
== See also ==

Revision as of 18:26, 7 October 2021

curl --help
-F, --form <name=content> Specify multipart MIME data
    --form-string <name=string> Specify multipart MIME data

Slack API

 curl -F token=xoxp-... -F team_id=T1234 -F user_id=U1234 https://slack.com/api/admin.users.remove
OAuth
  curl -F code=1234 -F client_id=3336676.569200954261 -F client_secret=ABCDEFGH https://slack.com/api/oauth.v2.access

See also

Advertising: