-
Notifications
You must be signed in to change notification settings - Fork 8
ActivitiesNotification
wilson.mak edited this page Oct 31, 2023
·
2 revisions
Get user activities.
Operation | Status |
---|---|
Get all activities by a user | Live |
Get all activities by a user and workspace | Live |
You can GET all activities by a given number of count for a user with the Bearer access token.
Request:
GET /notifications/activities?count={count} HTTP/1.1
Accept: application/json
Authorization: Bearer {accessToken}
Response:
HTTP/1.1 200 OK
Content-Type: application/json
{
"Data": [
{
"DateAdded": {
"Day": 25,
"FormattedDate": "25/10/2023 06:27",
"Hour": 6,
"Minute": 27,
"Month": 10,
"Year": 2023
},
"Description": "",
"DisplayName": "John Doe",
"Operation": "Create",
"TargetId": 1038,
"TargetText": "Huddle for Sales teams",
"TargetType": "Document",
"UpdatedItemDataType": "document",
"Uri": "files/1038",
"UserAvatar": "https://my.huddle.q3/apigateway/files/users/3433/avatar?h=5JDw8yk1De0UOLKvYgoxz-WoaEYjFGD5u0fkjl-qJc8",
"UserId": 3433,
"VersionNumber": 1,
"WorkspaceId": 3435,
"WorkspaceTitle": "Your first workspace",
"NewsFeedItemId": 1257,
"UserRelativeUri": "~/user/john.doe
}
],
"Success": true,
"Error": null
}
You can GET all activities by a given workspace ID and number of count for a user with the Bearer access token.
Request:
GET /notifications/activities?workspaceId={workspaceId}&count={count} HTTP/1.1
Accept: application/json
Authorization: Bearer {accessToken}
Response:
HTTP/1.1 200 OK
Content-Type: application/json
{
"Data": [
{
"DateAdded": {
"Day": 25,
"FormattedDate": "25/10/2023 06:27",
"Hour": 6,
"Minute": 27,
"Month": 10,
"Year": 2023
},
"Description": "",
"DisplayName": "John Doe",
"Operation": "Create",
"TargetId": 1038,
"TargetText": "Huddle for Sales teams",
"TargetType": "Document",
"UpdatedItemDataType": "document",
"Uri": "files/1038",
"UserAvatar": "https://my.huddle.q3/apigateway/files/users/3433/avatar?h=5JDw8yk1De0UOLKvYgoxz-WoaEYjFGD5u0fkjl-qJc8",
"UserId": 3433,
"VersionNumber": 1,
"WorkspaceId": 3435,
"WorkspaceTitle": "Your first workspace",
"NewsFeedItemId": 1257,
"UserRelativeUri": "~/user/john.doe
}
],
"Success": true,
"Error": null
}
Case | Response Code | Error Code |
---|---|---|
Invalid access token | 401 Unauthorized |
invalid_token |
Any error with default values | 404 Bad Request |
ResourceMatchingFailed |
- Basic concepts
-
Resources
- Actor
- Approvals
- BulkProcess
- Calendar
- Membership
- Company
- Document
- Document library settings
- Folder
- Paged Folder
- Pins
- Integrations
- Form
- Friends
- Invitation
- Link
- Document Lock
- Folder Lock
- Localisation
- MemberAutocomplete
- Notifications
- Offline item
- PeopleBulkProcess
- Permissions
- Presence
- PublishedDocuments
- Recents
- Recommendations
- Recycle Bin
- Search
- Share
- Tasks (Todos), File Requests, Approvals
- Tasks on Documents
- Actions
- UserApprovals
- User
- VersionHistory
- Workspace
- Workspaces
- SamlPartners
- Logout
- Impersonation
- Administration
- WebHooks