Get a private message from the user
Get the user's private message based on the private message id
Path Parameters
- id required
private message id
Header Parameters
- Authorization required
Oauth2 token or private token(need Bearer+" " begin)
Responses
- 200
- 400
- 401
- 403
success
- application/json
- Schema
- Example (from schema)
Schema
- id string
private message id
- content string
private message content
- unread boolean
private message is unread
- updated_at string
private message update time
- url string
private message api url
- html_url string
private message html url
sender object
sender info
login stringsender's username
id stringsender's userid
avatar_url stringsender's avatar url
url stringsender info api url
html_url stringsender profile html url
followers_url stringsender's followers url
followering_url stringsender's followering url
gists_url stringsender's gists url
starred_url stringsender's starred url
subscriptions_url stringsender's subscriptions url
organizations_url stringsender's organizations url
repos_url stringsender's repos url
events_url stringsender's events url
received_events_url stringsender's received events url
type stringsender's user type
site_admin stringsender is a admin
{
"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
}
}
Parameters id is error
fail,need login or invalid token
forbid, no permission
Loading...