Appearance
findEventsForUserAndCompany ​
Returns Events for a given MI User AND Company
Request ​
http
GET /rest/user/mi/{cId}/eventsHeaders ​
| Header | Required | Description |
|---|---|---|
x-nextinteract-authtoken | Yes | Auth token returned from loginUser |
Parameters ​
PATH PARAMS:
| Parameter | Type | Required | Description |
|---|---|---|---|
cId | - | Yes | companyId of the wall containing events |
QUERY PARAMS:
| Parameter | Type | Required | Description |
|---|---|---|---|
version | - | Yes | Currently only supports 1. |
pageNum | - | No | Page number of records to return. Starts at 1. Defaults to 1 if not supplied. |
Response ​
200 OK ​
Returns and array of EventJSON objects as per below example OR empty array if no data found e.g. []
json
[
{
"eventInviteUUID": "c7038c4b-ef84-4cc1-8cd3-ad37704a68cc",
"eId": 16,
"cId": 3,
"cName": "My Interact Finance",
"eStatus": "A",
"eName": "Test Event2",
"eDescription": "Event2Test Description",
"eAddress": "ABC Address",
"eStreet": "Event Street",
"eSuburb": "Suburbia",
"eCity": "Sydney",
"ePostCode": "2031",
"eCountry": "AUSTRALIA",
"eImage": "http://dev-sam-images.interact.technology/3/events/images/image1.jpg",
"eLatitude": -33.861548,
"eLongitude": 151.20863,
"eTimezoneId": "Sydney/Australia",
"eGmtOffsetMinutes": 720,
"eUTCStartDateTime": 1463346000000,
"eLocalStartDateTime": 1463389200000,
"eUTCEndDateTime": 1463374800000,
"eLocalEndDateTime": 1463418000000,
"eFlyerPdf": "http://dev-sam-images.interact.technology/3/events/pdfs/myeventflyer.pdf",
"eventUUID": "2134bc64-480e-4ad4-80f0-6acf74438d87",
"eHasEnded": "Y",
"eAttendeeId": 28,
"eAttendeeInviteStatus": "P",
"eAttendeeAttendingStatus": "U",
"eAttendeeInvitesSent": 0,
"eAttendeeRemindersSent": 0,
"useExternalEventProvider": "N",
"version": 2
},
{
"eventInviteUUID": "d2483b89-94e2-4e8b-bcdb-cc0de5027c34",
"eId": 15,
"cId": 3,
"cName": "My Interact Finance",
"eStatus": "A",
"eName": "Test Event1",
"eDescription": "Event1Test Description",
"eAddress": "ABC Address",
"eStreet": "Event Street",
"eSuburb": "Suburbia",
"eCity": "Sydney",
"ePostCode": "2031",
"eCountry": "AUSTRALIA",
"eImage": "http://dev-sam-images.interact.technology/3/events/images/image1.jpg",
"eLatitude": -33.861548,
"eLongitude": 151.20863,
"eTimezoneId": "Sydney/Australia",
"eGmtOffsetMinutes": 600,
"eUTCStartDateTime": 1463353200000,
"eLocalStartDateTime": 1463389200000,
"eUTCEndDateTime": 1463554800000,
"eLocalEndDateTime": 1463590800000,
"eFlyerPdf": "http://dev-sam-images.interact.technology/3/events/pdfs/myeventflyer.pdf",
"eventUUID": "19218695-5dc6-4fdb-9984-4d58f6854f38",
"eHasEnded": "Y",
"eAttendeeId": 27,
"eAttendeeInviteStatus": "P",
"eAttendeeAttendingStatus": "M",
"eAttendeeInvitesSent": 0,
"eAttendeeRemindersSent": 0,
"useExternalEventProvider": "N",
"version": 2
},
{
"eventInviteUUID": "ece42191-52b5-4b26-9d40-2405b3811c55",
"eId": 17,
"cId": 3,
"cName": "My Interact Finance",
"eStatus": "A",
"eName": "Test Event3",
"eDescription": "Event3Test Description",
"eAddress": "ABC Address",
"eStreet": "Event Street",
"eSuburb": "Suburbia",
"eCity": "Sydney",
"ePostCode": "2031",
"eCountry": "AUSTRALIA",
"eImage": "http://dev-sam-images.interact.technology/3/events/images/image1.jpg",
"eLatitude": -33.861548,
"eLongitude": 151.20863,
"eTimezoneId": "Sydney/Australia",
"eGmtOffsetMinutes": 480,
"eUTCStartDateTime": 1463360400000,
"eLocalStartDateTime": 1463389200000,
"eUTCEndDateTime": 1463475600000,
"eLocalEndDateTime": 1463504400000,
"eFlyerPdf": "http://dev-sam-images.interact.technology/3/events/pdfs/myeventflyer.pdf",
"eventUUID": "9ac3a1b8-2471-4d75-b284-faa35db0a5bc",
"eHasEnded": "Y",
"eAttendeeId": 29,
"eAttendeeInviteStatus": "P",
"eAttendeeAttendingStatus": "U",
"eAttendeeInvitesSent": 0,
"eAttendeeRemindersSent": 0,
"useExternalEventProvider": "N",
"version": 2
}
]Errors ​
| Exception | Description |
|---|---|
WSEventServiceUnavailableException | See Error Definitions |
WSEventServiceUnavailableException | See Error Definitions |
WSInvalidParameterException | See Error Definitions |
WSInvalidAuthTokenException | See Error Definitions |
WSEventServiceException | See Error Definitions |
WSCacheServiceException | See Error Definitions |
WSInternalException | See Error Definitions |