CmdID

CmdID / Commands

twurl

Curl-like command but tailored specifically for the Twitter API. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Authorize twurl to access a Twitter account

twurl authorize --consumer-key twitter_api_key --consumer-secret twitter_api_secretIdentify

Make a GET request to an API endpoint

twurl --request-method GET twitter_api_endpointIdentify

Make a POST request to an API endpoint

twurl --request-method POST --data 'endpoint_params' twitter_api_endpointIdentify

Upload media to Twitter

twurl --host "twitter_upload_url" --request-method POST "twitter_upload_endpoint" --file "path/to/media.jpg" --file-field "media"Identify

Access a different Twitter API host

twurl --host twitter_api_url --request-method GET twitter_api_endpointIdentify

Create an alias for a requested resource

twurl alias alias_name resourceIdentify