免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2300 | 回复: 0
打印 上一主题 下一主题

KOMOO API应用 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-25 10:07 |只看该作者 |倒序浏览
验证
描述:下面提到的验证均为Http Basic验证
公共消息
描述:显示网站公共消息
路径:http://komoo.cn/api/public_timeline.format
格式:rss,xml,json
用户消息
描述:显示用户最新发布的消息,不超过20条,不带id参数的时候必须进行验证
路径:http://komoo.cn/api/user_timeline.format
格式:rss,xml,json
参数:
id(可选):用户id
count(可选):显示条数,最多显示20条
好友消息
描述:显示我和好友24小时内发布的消息,不超过20条,不带id参数的时候必须进行验证
路径:http://komoo.cn/api/friend_timeline.format
格式:rss,xml,json
参数:
id(可选):用户id
count(可选):显示条数,最多显示20条
特定消息
描述:显示特定消息的信息
路径:http://komoo.cn/api/show.format
格式:xml,json
参数:
id(必须):消息id
发布消息
描述:发布用户消息,必须进行验证
路径:http://komoo.cn/api/status/update.format
格式:xml,json
参数:
status(必须):消息内容,Post方式提交
删除消息
描述:删除用户消息,必须进行验证
路径:http://komoo.cn/api/status/destroy.format
格式:xml,json
参数:
id(必须):消息id
好友列表
描述:用户好友列表,不带id参数的时候必须进行验证
路径:http://komoo.cn/api/users/friends.format
格式:xml,json
参数:
id(可选):用户id
关注者列表
描述:用户关注者列表,不带id参数的时候必须进行验证
路径:http://komoo.cn/api/users/followers.format
格式:xml,json
参数:
id(可选):用户id
用户个人信息
描述:用户个人信息,不带id参数的时候必须进行验证
路径:http://komoo.cn/api/users/show.format
格式:xml,json
参数:
id(可选):用户id
添加好友
描述:添加好友,必须进行验证
路径:http://komoo.cn/api/friends/create.format
格式:xml,json
参数:
id(必须):要添加的用户id
删除好友
描述:删除用户好友,必须进行验证
路径:http://komoo.cn/api/friends/destroy.format
格式:xml,json
参数:
id(必须):要删除用户id
用户收到的站内消息
描述:用户收到的站内消息,最多显示20条,必须进行验证
路径:http://komoo.cn/api/direct_message/inbox.format
格式:xml,json
参数:
count(可选):显示条数,最多显示20条
发送站内消息
描述:给好友发送站内消息,必须进行验证
路径:http://komoo.cn/api/direct_message/create.format
格式:xml,json
参数:
id(必须):好友id
status(必须):消息内容(Post方式提交)
删除收到的站内消息
描述:删除收到的站内消息,必须进行验证
路径:http://komoo.cn/api/direct_message/destroy.format
格式:xml,json
参数:
id(必须):消息id
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP