X (Twitter)X(Twitter)Social

Post a tweet to your own X account

x.x.post.create

Publish a post to your own X account

价格
$0.015/call按供应商原价
成功率
99.5%近 30 天 · 919 次
延迟 p50
319 毫秒p95 626 毫秒
最后验证
—尚未验证
POSThttps://toolswitch.dev/v1/tools/x.x.post.create预览
在线试用即将上线供应商文档 ↗
  • 可用平台额度调用
  • 同步返回
  • 读取公开数据

参数

needs the `write` capability (tweet.write); a connection made with `read` answers 403. Success is HTTP 201 with {data: {id, text}} — the public URL is https://x.com/<handle>/status/<data.id>, which the API does not return. Images/video are out of reach, see the block comment above

这个工具没有参数,详见供应商文档 ↗ 供应商文档

代码示例

将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。

预览
curl -X POST 'https://toolswitch.dev/v1/tools/x.x.post.create' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.015/call 计费,已含服务费。