Skip to content

Community Life cycle events

sandhyasrini edited this page Jul 19, 2017 · 6 revisions

Community Life cycle events

Below are the events, which are published for community life cycle event and their data at the time of publishing

Event Type: 'newcommunityadded'

Sample JSON:

 {
"domain":"wipro",
    "name": "name_of_community",
    "avatar": "avatar_of_community",
    "purpose": "purpose_of_community",
    "template": "template_used",
    "owner":"roshininasar",
"event":"newcommunityadded",
    "ts": "<time stamp of the event>"
 }

Event Type: 'newmembersadded'

Sample JSON:

 {
"domain":"wipro",
"event":"newmembersadded",
"members": [ { 'member': '', role: '' }, { 'member': '', role: '' } ],
    "ts": "<time stamp of the event>"
 }

Event Type:'newinvitees'

Sample JSON:

 {
    "domain": "wipro", 
    "event": "newinvitees", 
    "invitees": [ { 'member': '', role: '' }, { 'member': '', role: '' } ],
    "ts": "<time stamp of the event>"
 }

Event Type:'newjoinrequests'

Sample JSON:

 {
 "domain": "wipro", 
 "event": "newjoinrequests", 
 "requester": 'email_of_requested_user',
     "ts": "<time stamp of the event>"
 }

Event Type:'newtoolsadded'

Sample JSON:

 {
 "domain":"balajir",
 "event":"newtoolsadded",
 "tools": [ {'toolid': '', 'toolname': '', 'toolavatar': '' }, {'toolid': '', 'toolname': '', 'toolavatar': '' } ],
     "ts": "<time stamp of the event>"
 }

Event Type:'removemembers'

Sample JSON:

 {   
     "domain":"wipro",
     "removedby":"roshininasar",
 "event":"removemembers",
 "members": [ { 'member': '', role: '' }, { 'member': '', role: '' } ],
     "ts": "<time stamp of the event>"
 }

Event Type:'removetools'

Sample JSON:

 {
  "domain":"balaji",
   "event":"removetools",
   "tools": [ {'toolid': '', 'toolname': '', 'toolavatar': '' }, {'toolid': '', 'toolname': '', 'toolavatar': '' } ],
       "ts": "<time stamp of the event>"
 }

Event Type:'rejectinvitees'

Sample JSON:

{
    "domain": "wipro", 
    "event": "rejectinvite", 
    "invitees": member,
    "ts": "<time stamp of the event>"
 }

Event Type:'rejectrequests'

Sample JSON:

 {
    "domain": "wipro", 
    "event": "rejectrequests", 
    "requester": [ 'email_of_requested_user', 'email_of_requested_user'],
    "ts": "<time stamp of the event>"
 }

Clone this wiki locally