获取用户一条私信
根据私信的id,获取用户的私信
Path Parameters
- id required
私信的ID
Header Parameters
- Authorization required
Oauth2 token或者私人token(需以Bearer加空格开头)
Responses
- 200
- 400
- 401
- 403
操作成功
- application/json
- Schema
- Example (from schema)
Schema
- id string
私信的id
- content string
私信的内容
- unread boolean
是否未读
- updated_at string
创建日期
- url string
私信详情的api地址
- html_url string
私信详情的html页面地址
sender object
发送人信息
login string发送人用户名
id string发送人用户id
avatar_url string发送人用户头像
url string发送人信息api地址
html_url string发送人主页地址
followers_url string发送人的followers url
followering_url string发送人的followering url
gists_url string发送人的 gists url
starred_url string发送人的 starred url
subscriptions_url string发送人的 subscriptions url
organizations_url string发送人的 organizations url
repos_url string发送人的 repos url
events_url string发送人的 events url
received_events_url string发送人的 received events url
type string发送人的 user type
site_admin string发送人的是否是管理员
{
"id": "63db126c0566d2f7d2c9498c",
"content": "nevins35更改了讨论#15可以帮帮我吗-打不开了的状态为:重新打开",
"unread": false,
"updated_at": "2024-01-10T18:04:18+08:00",
"url": "https://api.atomgit.com/notifications/messages/51662c27f70c461cb04deafad374d5f4",
"html_url": "https://atomgit.com/-/profile/notice/message/36f5c1f7d3f943fa6e58f7c25d921a9e",
"sender": {
"login": "mrpuatomgit",
"id": "63db126c0566d2f7d2c9498c",
"avatar_url": "https://img-host/uploads/user/1656318880150_5104.png",
"url": "https://api.atomgit.com/users/leige",
"html_url": "https://atomgit.com/mrpuatomgit",
"followers_url": null,
"followering_url": null,
"gists_url": null,
"starred_url": null,
"subscriptions_url": null,
"organizations_url": null,
"repos_url": null,
"events_url": null,
"received_events_url": null,
"type": "user",
"site_admin": false
}
}
id参数有误,私信记录不存在
操作失败,暂未登录
暂无权限,操作失败
Loading...