Paginated response with an array of spaces (topics) modified after or before the specified reference time.

URL Parameters

NameDescriptionLocationRequiredDefault Value
spacetypeType of space: 'group' or 'direct'QueryYes
afterUTC timestamp (number of milliseconds elapsed since 1 January 1970 00:00:00 UTC) after which to return activity.QueryYes (one of after or before)
beforeUTC timestamp (number of milliseconds elapsed since 1 January 1970 00:00:00 UTC) before which to return activity.QueryYes (one of after or before)
pagePage of results, starting from 0, default is 0.QueryNo0
sizeNumber of results to return per page, default is 30.QueryNo30

Body Parameters

None.

Authentication

JwtAuthenticator, Oauth2Authenticator, AnonymousAuthenticator

Authorization

Read Topic.

Example Request

URL

GET https://spacesapis.zang.io/api/activitiesrecord/spaces

Headers

Authorization: "jwt eyJhbGciOiJSUzI1NiIsIdfgdfgnR5cCI6IkpXVCJ9.eyJ1c2VyX2lkX3NpZyI6ImxPWHpxNzVzR3J3X0xwWEMyRGRMakhyYXJlWVhyTzFMdEZHZkhkOWNkTXciLCJwcm9kdWN0X3R5cGUiOiJhY2NvdW50cyIsImxhc3R1cGRhdGV0aW1lIjoiMjAxNy0wMS0zMFQxMzo1ODo0Ny4yMDYiLCJpc3MiOiJ6YW5nLmlvIiwicHVibGlja2V5aWQiOiJhZ3h6Zm05dVpYTnVZVEl3TVRSeUdnc1NEVWRLZDNSUWRXSnNhV05MWlhrdfgdWdJQ2dsUEtFakFvTSIsImV4cCI6MTQ5NTM5MTIwMywidXNlcl9pZCI6ImFneHpmbTl1WlhOdVlUSXdNVFJ5RVFzU0JGVnpaWElZZ0lEQXMtX25fUW9NIiwidmVyIjoiMi4wIn0.SqZpw1uPIebqW3qlDsm0-DWYFKEH0SgPwtD-tSESWOF-5hLkZMqJH28ooWux2S7s9riIew7pTVPnZpTgJa5zHcEAG0gXSEJVOqmpGp_4ufM8YtZoZMpBFjyAkwyAt-ILkGUYIo0GU5WyzMPLV8YLXfgdfgOgkE2MGGOajBkjPmC2Db3pA0D0M9k-21EL1gwWBC5YIq0PDAkgulegwl6khRmB8irJQ-dfg-d-KV9eYfFpsCdJKRGzSfqg"

Or

Authorization: "bearer f746696f5de4528u128ae2f274eea253e8a7943a"

Example Response

{
  "data": [
      {
          "_id": "59aee14d75b76d59ea37d46d",
          "topicId": "5935d96087eed333d5beb05c",
          "status": 1,  ///// flag of space archived
          "modified": "2017-09-05T20:40:51.710Z",
          "users": [
              {
                  "user": "588cc8827b40f9a576054c20", //this is user who is queries
                  "left": false
              }
          ]
      },
      {
          "_id": "59af0be975b76d59ea3ed9b2",
          "topicId": "59a9bb15a1c4f2b06727dc1c",
          "type": "group",
          "status": 0,
          "modified": "2017-09-05T20:42:11.065Z",
          "users": [
              {
                  "user": "588cc8827b40f9a576054c20", // this is user who queries
                  "left": true // this is flag of user left from the space
              }
          ]
      },
      {
          "_id": "59a9aec84d6a919bde4b48e9",
          "title": "new334333",
          "description": "",
          "status": 0,
          "members": [
              {
                  "member": "588cc8827b40f9a576054c20",
                  "memberType": "userId",
                  "role": "admin",
                  "joinTime": "2017-09-01T19:02:32.142Z",
                  "username": "patrickhan@esna.com",
                  "displayname": "Patrick-123 Han-han",
                  "picture_url": "pictures/pfpic_patrickhan_ac87aef2-9452-47fc-ae73-e1937acd3730"
              }
          ],
          "settings": {
              "confId": "221312218",
              "mdOpts": [],
              "mdSrv": "ams"
          },
          "created": "2017-09-01T19:02:32.149Z",
          "type": "group",
          "isPinned": null,
          "notification": null,
          "role": "admin",
          "lastAccess": "2017-09-05T20:42:41.043Z"
      }
  ],
  "nextPageUrl": "/api/activitiesrecord/spaces?topictype=&after=1504633006610&size=3&page=1&prev=false",
  "previousPageUrl": "",
  "total": 3
}