#奇技淫巧
命令行使用templink
在.bashrc中添加函数
templink() {
[[ "$1" ]] || { echo "Please input the file that you want to upload" >&2; return 1; }
curl -v -k -F "file=@$1" -F "token=你的token" -F "model=2" -X POST "https://connect.tmp.link/api_v2/cli_uploader"
}
命令行使用templink
在.bashrc中添加函数
templink() {
[[ "$1" ]] || { echo "Please input the file that you want to upload" >&2; return 1; }
curl -v -k -F "file=@$1" -F "token=你的token" -F "model=2" -X POST "https://connect.tmp.link/api_v2/cli_uploader"
}