Skip to main content

List of Connection Events

EventTriggered WhenNote
connection_request.createda new connection request is createdThis event is triggered only if follow_enabled community option is false
connection_request.rejecteda connection request is rejectedThis event is triggered only if follow_enabled community option is false
connection_request.restoreda connection request that has been rejected is restoredThis event is triggered only if follow_enabled community option is false
connection_request.cancelleda connection request is cancelled by the creatorThis event is triggered only if follow_enabled community option is false
connection.createda new connection is createdThis event is triggered only if follow_enabled community option is false
connection.deleteda connection is deletedThis event is triggered only if follow_enabled community option is false
connection.followa user follows another userThis event is triggered only if follow_enabled community option is true
connection.unfollowa user unfollows another userThis event is triggered only if follow_enabled community option is true
  • connection_request.created
  • connection_request.rejected
  • connection_request.cancelled
  • connection.created
  • connection.deleted
{
"event_id": 0,
"type": "string",
"created": 1625471209.139224,
"data": {
"to_user": {
"id": 33,
"username": "string",
"real_name": "string",
"email": "user@example.com",
"email_isvalid": true,
"date_joined": "2019-08-24T14:15:22Z",
"bio": "string",
"location": "string",
"location_lat_lng": "string",
"position_lat_lng": "string",
"date_of_birth": "2019-09-23",
"description": "string",
"gender": "Male",
"status": "a",
"website": "https://example.com",
"avatar": "string",
"cover": "string",
"ext_id": 3,
"tags": [],
"reputation": 111,
"connection_requests_sent_counter": 1,
"connection_requests_received_counter": 0,
"connections_counter": 0,
"posts_counter": 0,
"discussions_counter": 0,
"statuses_counter": 0,
"polls_counter": 0
},
"from_user": {
"id": 1,
"username": "string",
"real_name": "string",
"email": "user@example.com",
"email_isvalid": true,
"date_joined": "2019-08-24T14:15:22Z",
"bio": "string",
"location": "string",
"location_lat_lng": "string",
"position_lat_lng": "string",
"date_of_birth": "2019-09-23",
"description": "string",
"gender": "Male",
"status": "a",
"website": "https://example.com",
"avatar": "string",
"cover": "string",
"ext_id": 3,
"tags": [],
"reputation": 111,
"connection_requests_sent_counter": 1,
"connection_requests_received_counter": 0,
"connections_counter": 0,
"posts_counter": 0,
"discussions_counter": 0,
"statuses_counter": 0,
"polls_counter": 0
}
}
}
  • connection.follow
  • connection.unfollow
{
"event_id": 0,
"type": "string",
"created": 1625471209.139224,
"data": {
"to_user": {
"id": 114,
"username": "string",
"real_name": "string",
"email": "user@example.com",
"email_isvalid": true,
"date_joined": "2019-08-24T14:15:22Z",
"bio": "string",
"location": "string",
"location_lat_lng": "string",
"position_lat_lng": "string",
"date_of_birth": "2019-09-23",
"description": "string",
"gender": "Male",
"status": "a",
"website": "https://example.com",
"avatar": "string",
"cover": "string",
"ext_id": 3,
"tags": [],
"reputation": 14,
"connection_requests_sent_counter": 1,
"connection_requests_received_counter": 0,
"connections_counter": 0,
"posts_counter": 0,
"discussions_counter": 0,
"statuses_counter": 0,
"polls_counter": 0
},
"from_user": {
"id": 1,
"username": "string",
"real_name": "string",
"email": "user@example.com",
"email_isvalid": true,
"date_joined": "2019-08-24T14:15:22Z",
"bio": "string",
"location": "string",
"location_lat_lng": "string",
"position_lat_lng": "string",
"date_of_birth": "2019-09-23",
"description": "string",
"gender": "Male",
"status": "a",
"website": "https://example.com",
"avatar": "string",
"cover": "string",
"ext_id": 3,
"tags": [],
"reputation": 81,
"connection_requests_sent_counter": 1,
"connection_requests_received_counter": 0,
"connections_counter": 0,
"posts_counter": 0,
"discussions_counter": 0,
"statuses_counter": 0,
"polls_counter": 0
}
}
}