$ curl -F media_file=@gitea.png -H "Token: $YARND_TOKEN" https://twtxt.net/api/v1/upload
{"Type":"taskURI","Path":"https://twtxt.net/task/FiBmMQbNF7bicLSZsWybmN"}
$ curl https://twtxt.net/task/FiBmMQbNF7bicLSZsWybmN | jq '.'
{
"state": "complete",
"error": "",
"data": {
"mediaURI": "https://twtxt.net/media/rhkm36YACemg7TBmG7d2Q6.png"
}
}
$ curl -F media_file=@gitea.png -H "Token: $YARND_TOKEN" https://twtxt.net/api/v1/upload
{"Type":"taskURI","Path":"https://twtxt.net/task/FiBmMQbNF7bicLSZsWybmN"}
$ curl https://twtxt.net/task/FiBmMQbNF7bicLSZsWybmN | jq '.'
{
"state": "complete",
"error": "",
"data": {
"mediaURI": "https://twtxt.net/media/rhkm36YACemg7TBmG7d2Q6.png"
}
}
$ curl -F media_file=@gitea.png -H "Token: $YARND_TOKEN" https://twtxt.net/api/v1/upload
{"Type":"taskURI","Path":"https://twtxt.net/task/FiBmMQbNF7bicLSZsWybmN"}
$ curl https://twtxt.net/task/FiBmMQbNF7bicLSZsWybmN | jq '.'
{
"state": "complete",
"error": "",
"data": {
"mediaURI": "https://twtxt.net/media/rhkm36YACemg7TBmG7d2Q6.png"
}
}
1. Hit the
/api/v1/upload
endpoint with a valid token and media_file
as a Form URL encoded payload.2. Hit the Task endpoint you get back until
status=complete
3. Use the URI once complete
1. Hit the
/api/v1/upload
endpoint with a valid token and media_file
as a Form URL encoded payload.2. Hit the Task endpoint you get back until
status=complete
3. Use the URI once complete
1. Hit the
/api/v1/upload
endpoint with a valid token and media_file
as a Form URL encoded payload.2. Hit the Task endpoint you get back until
status=complete
3. Use the URI once complete
- images
- video
- audio
- images
- video
- audio
- images
- video
- audio
Thank you so much, I'll start working on getting it into the client tonight.