EasyTalk API (正在完善中)

用户验证
如需要验证用户,验证方式为 HTTP Basic 验证。
显示用户的消息
路径: http://www.hi-dg.com/bbs/et/api/user_timeline.php?ext=[xml|json|rss]
参数:
  • id (可选) - 用户 id (id为空时显示所有人的消息)。
    示例: http://www.hi-dg.com/bbs/et/api/user_timeline.php?ext=[xml|json|rss]&id=1
  • count (可选) - 消息数,范围 1-20,默认为 20。
    示例: http://www.hi-dg.com/bbs/et/api/user_timeline.php?ext=[xml|json|rss]&count=10
  • callback (可选) - JavaScript 函数名,使用 JSON 格式时可用,将 JSON 对象作为参数直接调用。
    示例: http://www.hi-dg.com/bbs/et/api/user_timeline.php?ext=json&callback=getStatuses
显示指定消息
路径: http://www.hi-dg.com/bbs/et/api/show.php?ext=[xml|json]
参数:
  • id (必须) - 消息的id。
    示例: http://www.hi-dg.com/bbs/et/api/show.php?ext=[json|xml]&id=1
  • callback (可选) - JavaScript 函数名,使用 JSON 格式时可用,将 JSON 对象作为参数直接调用。
    示例: http://www.hi-dg.com/bbs/et/api/show.php?ext=json&id=1&callback=getStatuses
发布消息 - 验证
路径: http://www.hi-dg.com/bbs/et/api/update.php
参数:
  • status (必需) - 消息内容,使用 POST 方式提交
  • source (可选) - 消息来源,使用 POST 方式提交,如果与EasyTalk的数据库匹配,网页上将以此格式显示: …………(消息内容) 通过 ***(对应的 API 应用名称,需通过EasyTalk的验证)。
删除消息 - 验证
路径: http://www.hi-dg.com/bbs/et/api/destroy.php
参数:
  • id (必须) - 消息的id。
    示例: http://www.hi-dg.com/bbs/et/api/destroy.php?id=12