Account/update notice
目录 |
account/update_notice
更新用户提醒设置
URL
http://api.t.sina.com.cn/account/update_notice.format
格式
xml, json
HTTP请求方式
POST, 必须用Multipart/form-data方式
是否需要登录
true
请求数限制
true
关于请求数限制,参见接口访问权限说明
请求参数
- comment:新评论提醒,0—不提醒,1—提醒,默认值1
- follower:新粉丝提醒,0—不提醒,1—提醒,默认值1
- dm:新私信提醒,0—不提醒,1—提醒,默认值1
- mention:@提到我提醒,0—不提醒,1—提醒,默认值1
- from_user:设置哪些提到我的微博计入提醒数,微博作者身份,0--所有人,1—关注的人
- status_type:设置哪些提到我的微博计入提醒数,微博类型,0—所有微博,1—原创的微博
返回结果
XML示例:
<?xml version="1.0" encoding="UTF-8"?> <result>true</result>
JSON示例:
{"result":true}
使用示例
- xml:
curl -u uid:password -d "source=appkey&follower=1&status_type=1&from_user=1&dm=1&metion=1&comment=1" http://api.t.sina.com.cn/account/update_notice.xml
- json:
curl -u uid:password -d "source=appkey&follower=1&status_type=1&from_user=1&dm=1&metion=1&comment=1" http://api.t.sina.com.cn/account/update_notice.json
文档更新时间: 2010-10-26