buckket / twtxt

Decentralised, minimalist microblogging service for hackers.
http://twtxt.readthedocs.org/en/stable/
MIT License
1.94k stars 79 forks source link

More place holders for use in post/pre_tweet_hook #70

Closed buckket closed 8 years ago

buckket commented 8 years ago

Currently we support "{twtfile}" which expands to the location of the local twtxt file.

While playing around with https://github.com/plomlompom/htwtxt I thought about also making the tweet itself (in it’s raw format) available, so that we could post our new tweet to a remote server via a HTTP POST request, say by using curl.

Example: curl --data "username=foo&password=bar&tweet=FOOBAR" https://example.com/append

buckket commented 8 years ago

Well, theoretically you could also use something like: tail -1 {twtfile} | curl -d @- https://example.com/append

But in the end it might prove useful to have a more direct way.

buckket commented 8 years ago

Provided an example: https://github.com/buckket/twtxt/commit/dbdd54d3839858ce1ad6956e92c54be697084453

Will think about the usefulness of this proposal. :neutral_face: