twurl Command Examples

Curl-like command but tailored specifically for the Twitter API. More information: https://github.com/twitter/twurl.

twurl authorize --consumer-key {{twitter_api_key}} --consumer-secret {{twitter_api_secret}}

twurl -X GET {{twitter_api_endpoint}}

twurl -X POST -d '{{endpoint_params}}' {{twitter_api_endpoint}}

twurl -H "{{twitter_upload_url}}" -X POST "{{twitter_upload_endpoint}}" --file "{{path/to/media.jpg}}" --file-field "media"

twurl -H {{twitter_api_url}} -X GET {{twitter_api_endpoint}}

twurl alias {{alias_name}} {{resource}}