Sending a message with the Twitter API in a Cloudflare worker
At the time I wrote this post there were no examples of this, so it took me some time to figure out how to do it. The following snippet shows you how to send a tweet, but you can use any API method you want.
Source: leopradel.com