Closed buckket closed 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.
Provided an example: https://github.com/buckket/twtxt/commit/dbdd54d3839858ce1ad6956e92c54be697084453
Will think about the usefulness of this proposal. :neutral_face:
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