小红书服务
  1. 通知
小红书服务
  • 文档首页
  • 实例
    • 创建实例
      POST
  • 登录
    • 获取登录二维码
      POST
    • 获取二维码状态
      POST
  • 用户
    • 我的信息
      POST
    • 查询用户信息
      POST
    • 获取用户的笔记
      POST
    • 获取用户的收藏
      POST
  • 笔记
    • 获取评论
      POST
    • 评论
      POST
    • 点赞
      POST
    • 取消点赞
      POST
    • 收藏
      POST
    • 取消收藏
      POST
  • 通知
    • 赞和收藏
      POST
    • 新增关注
      POST
    • 评论和@
      POST
  • 推荐
    • 首页推荐
      POST
  • 发布笔记
    • 初始化
      POST
    • 获取上传许可
      POST
    • 上传图片
      POST
    • 上传视频
      POST
    • 发布图文笔记
      POST
    • 发布视频笔记
      POST
  1. 通知

评论和@

开发中
POST
/notification/get

请求参数

Body 参数application/json
type
string 
必需
num
integer 
必需
cursor
string 
必需
guid
string 
必需
示例
{
        "type": "mentions",
        "num": 10,
        "cursor":"",
        "guid": "b9eed5c5-3ad5-4933-b600-5c81f9e6748f"
    }

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/notification/get' \
--header 'Content-Type: application/json' \
--data-raw '{
        "type": "mentions",
        "num": 10,
        "cursor":"",
        "guid": "b9eed5c5-3ad5-4933-b600-5c81f9e6748f"
    }'

返回响应

🟢200成功
application/json
Body
err_msg
string 
必需
err_code
integer 
必需
data
object 
必需
msg
string 
必需
data
object 
必需
code
integer 
必需
success
boolean 
必需
hint
string 
必需
示例
{"err_msg":"success","err_code":0,"data":{"msg":"成功","data":{"has_more":false,"cursor":221501904,"message_list":[{"type":"comment/comment","title":"回复了我的评论","item_info":{"illegal_info":{"status":1,"desc":"该笔记已删除","illegal_status":"DELETE"},"link":"xhsdiscover://item/discovery.63010a5c000000001b027ad5?type=video&sourceID=notifications&feedType=single","user_info":{"userid":"5c543d63000000001200327f","nickname":"^O^悠哈","image":"https://sns-avatar-qc.xhscdn.com/avatar/5d22c6cd8774600001e70812.jpg?imageView2/2/w/120/format/jpg","red_official_verify_type":0},"status":0,"type":"note_info","id":"63010a5c000000001b027ad5","image":"http://ci.xiaohongshu.com/01028l01kdnsxw8garj0100teiudemd4de?imageView2/2/w/1080/format/jpg","image_info":{"height":960,"url":"http://ci.xiaohongshu.com/01028l01kdnsxw8garj0100teiudemd4de?imageView2/2/w/1080/format/jpg","width":432}},"track_type":"40","comment_info":{"id":"6303a12f0000000017029509","content":"一房一厅","illegal_info":{"status":0,"desc":"","illegal_status":"NORMAL"},"status":0,"liked":false,"like_count":0,"target_comment":{"id":"63039dfb000000001a01e81c","content":"几房的","illegal_info":{"status":0,"desc":"","illegal_status":"NORMAL"},"user_info":{"userid":"62790d32000000002102b227","nickname":"Hanson","image":"https://sns-avatar-qc.xhscdn.com/avatar/631960f12db4510f98e44317.jpg?imageView2/2/w/120/format/jpg","red_official_verify_type":0},"status":0,"liked":false,"like_count":0}},"liked":false,"time_flag":0,"id":"221501904","time":1661182256,"score":221501904,"user_info":{"nickname":"^O^悠哈","image":"https://sns-avatar-qc.xhscdn.com/avatar/5d22c6cd8774600001e70812.jpg?imageView2/2/w/120/format/jpg","red_official_verify_type":0,"indicator":"作者","userid":"5c543d63000000001200327f"}}]},"code":0,"success":true}
,"hint":"170445313397859571498491"}
修改于 2024-01-06 01:45:32
上一页
新增关注
下一页
首页推荐
Built with