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