LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

twurl

OAuth-enabled curl for Twitter API

TLDR

Authorize account
$ twurl authorize --consumer-key [key] --consumer-secret [secret]
copy
GET request
$ twurl [/2/users/me]
copy
POST request
$ twurl -X POST [/2/tweets] -d '{"text":"Hello"}'
copy
List accounts
$ twurl accounts
copy
Set default account
$ twurl set default [username]
copy

SYNOPSIS

twurl [-X method] [-d data] [options] endpoint

DESCRIPTION

twurl is an OAuth-enabled curl replacement specifically designed for the Twitter (X) API. It handles the OAuth authentication handshake automatically, allowing developers to make authenticated API requests without manually managing tokens in each request.After initial authorization with consumer key and secret, twurl stores credentials and signs all subsequent requests. Multiple accounts can be authorized and switched between, making it easy to test API calls across different users. All Twitter API endpoints are accessible via standard HTTP methods.Requests support custom headers and JSON request bodies for POST operations. The tool is particularly useful for API exploration and debugging during Twitter application development.

PARAMETERS

-X METHOD

HTTP method.
-d DATA
Request body.
-H HEADER
Custom header.
authorize
Set up OAuth.
accounts
List accounts.

INSTALL

nix profile install nixpkgs#twurl
copy

CAVEATS

Twitter API changes. Developer account needed. Ruby required.

HISTORY

twurl was created by Twitter as an OAuth-enabled curl alternative for the Twitter API.

SEE ALSO

curl(1), httpie(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid