# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 10
# self = https://watcher.sour.is/conv/goxm52q
oki got it

curl -X 'POST' -d '{"username":"test","password":"test"}  ' -H 'Accept: application/json' -H 'Content-Type: application/json' -H 'User-Agent: go.yarn.social/1.0.0@HEAD' 'https://twtxt.net/api/v1/auth' | jq '.token'

But now I realise, that I can't inject it on twtr :S>
At least i had fun debugging yarnc and yarnd code.
Thanks
@tkanos Having a look at your hook it looks like you're 50% there. You can try writing the token to a file somewhere. So it would be something like pre_tweet_hook = curl .... | jq .token > ~/.yarn_token. Then, all you have to do is post_tweet_hook = curl ... '{token: "$(cat ~/.yarn_token" }'.
@<~duriny https://envs.net/~duriny/twtxt.txt> @tkanos Do I need to write up a Wiki page on how to communicate with the yarnd API via curl? Would that help here with complete examples? 🤔
@<~duriny https://envs.net/~duriny/twtxt.txt> @tkanos Do I need to write up a Wiki page on how to communicate with the yarnd API via curl? Would that help here with complete examples? 🤔
the more (documentation) the merrier :D
speaking of, @prologic how do you feel about https://go.dev/blog/examples?
@<~duriny https://envs.net/~duriny/twtxt.txt> I shall do this then 👌
@<~duriny https://envs.net/~duriny/twtxt.txt> I shall do this then 👌


=> https://git.mills.io/yarnsocial/yarn/issues/861=


=> https://git.mills.io/yarnsocial/yarn/issues/861=