List all notifications for authorized users
Query the relevant notification records of users on AtomGit based on the filtering criteria and in pages
Query Parameters
- unread boolean
Whether to only obtain unread messages, default:false
- type string
Filter notifications of specified type,all:all notifications,event:event notifications,referer:referer notifications,default all
- since string
Only retrieve messages updated after the given time. The required time format is: ISO 8601
- page integer
current page index
- per_page integer
per page size,max size is 100
Header Parameters
- Authorization required
Oauth2 token or private token(need Bearer+" " begin)
- 200
- 401
- 403
success
- application/json
- Schema
- Example (from schema)
Schema
- total Integer
total
list array
notify message list
id stringnotify message id
content stringnotify message content
unread booleannotify message is unread
updated_at stringnotify message update date time
url stringnotify message api url
html_url stringnotify message html url
type stringnotify type
namespace object
belong to organization or project's namespace info
id stringorganization or project's id
name stringorganization or project's name
path stringorganization or project's path
type stringnamespace type
actor 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
{
"total": 60,
"list": [
null
]
}
fail,need login or invalid token
forbid, no permission