List the activities received by a user.
List the activities received by a user.
Path Parameters
- username required
username
Header Parameters
- Authorization required
Oauth2 token or private token (must be prefixed with 'Bearer' followed by a space).
- 200
- 401
- 403
- 404
Success
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- type string
Activity type
actor object
actor info
login stringactor username
id stringactor user id
avatar_url stringactor user avatar url
url stringAPI endpoint for querying user information.
html_url stringUser profile url.
followers_url stringactor's followers url
followering_url stringactor's followering url
gists_url stringactor's gists url
starred_url stringactor's starred url
subscriptions_url stringactor's subscriptions url
organizations_url stringactor's organizations url
repos_url stringactor's repos url
events_url stringactor's events url
received_events_url stringactor's received events url
type stringactor's user type
site_admin stringIs actor a administrator
repo object
Repository information
id stringRepository id
name stringRepository name
path stringRepository path
name_with_namespace stringFull repository name (including namespace name)
path_with_namespace stringFull repository path (including namespace path)
visibility_level intIs the repository public
web_url stringrepository web url
- created_at string
create time
- payload string
The relevant information included in the activity.
- ]
[
{
"type": "push",
"actor": {
"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
},
"repo": {
"id": 34367,
"name": "feed",
"path": "feed",
"name_with_namespace": "feed",
"path_with_namespace": "feed",
"visibility_level": 20,
"web_url": "https://atomgit.com/miykaelxxm/feed"
},
"created_at": "2024-01-10T18:04:18+08:00",
"payload": "test"
}
]
Fail,need login or invalid token
No permission, operation failed.
User is not exist