Appearance
getEventBrochuresForUser ​
Returns Event Brochures for a given MI User and Event
Request ​
http
GET /rest/brochures/event/{eId}Headers ​
| Header | Required | Description |
|---|---|---|
x-nextinteract-authtoken | Yes | Auth token returned from loginUser |
Parameters ​
PATH PARAMS:
| Parameter | Type | Required | Description |
|---|---|---|---|
eId | - | Yes | eventId of an Event |
QUERY PARAMS:
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceType | - | No | Either "iPad", "iPhone", "Desktop", "Android Tablet" or "Android Phone". Defaults to iPad |
appCode | - | No | Defaults to MY if not supplied. |
Response ​
200 OK ​
Returns and array of EventJSON objects as per below example:
json
[
{
"bName": "Event Brochure 1",
"userId": 8,
"pName": "Event Product",
"pId": 9,
"bvId": 216,
"bvAssetMD5": "MD51",
"bIsInternal": "N",
"bOrder": 2,
"bvAsset": "https://s3.amazonaws.com/DEV.com.nextinteract.brochures/3/brochures/216/Event%20Asset%20Version%201",
"cId": 3,
"bId": 216,
"bvStatus": "A",
"bFormat": "html",
"bImage": "http://dev-sam-images.interact.technology/3/brochureimages/Logo1.jpg",
"bBody": "Body 1",
"bCreated": 1464067819549,
"bvDesc": "Event Asset Version Description 1",
"bvBytes": 2000,
"bStatus": "A",
"globalId": 7777,
"htmlAssetRedirectUrl": "http://test.redirect.com/url",
"bNotifyUserOfExternalUrl": "Y"
},
{
"bName": "Event Brochure 2",
"userId": 8,
"pName": "Event Product",
"pId": 9,
"bvId": 217,
"bvAssetMD5": "MD52",
"bIsInternal": "N",
"bOrder": 3,
"bvAsset": "https://s3.amazonaws.com/DEV.com.nextinteract.brochures/3/brochures/217/Event%20Asset%20Version%202",
"cId": 3,
"bId": 217,
"bvStatus": "A",
"bFormat": "html",
"bImage": "http://dev-sam-images.interact.technology/3/brochureimages/Logo2.jpg",
"bBody": "Body 2",
"bCreated": 1464067819558,
"bvDesc": "Event Asset Version Description 2",
"bvBytes": 2000,
"bStatus": "A",
"globalId": 7777,
"htmlAssetRedirectUrl": "http://test.redirect.com/url",
"bNotifyUserOfExternalUrl": "N"
},
{
"bName": "Event Brochure 3",
"userId": 8,
"pName": "Event Product",
"pId": 9,
"bvId": 218,
"bvAssetMD5": "MD53",
"bIsInternal": "N",
"bOrder": 4,
"bvAsset": "https://s3.amazonaws.com/DEV.com.nextinteract.brochures/3/brochures/218/Event%20Asset%20Version%203",
"cId": 3,
"bId": 218,
"bvStatus": "A",
"bFormat": "html",
"bImage": "http://dev-sam-images.interact.technology/3/brochureimages/Logo3.jpg",
"bBody": "Body 3",
"bCreated": 1464067819573,
"bvDesc": "Event Asset Version Description 3",
"bvBytes": 2000,
"bStatus": "A",
"globalId": 7777,
"htmlAssetRedirectUrl": "http://test.redirect.com/url",
"bNotifyUserOfExternalUrl": "N"
}
]Response Fields ​
| Parameter | Type | Required | Description |
|---|---|---|---|
globalId | Integer | No | Defines the SSO global Id indicating that the asset is an SSO URL Asset. |
htmlAssetRedirectUrl | String[1024] | No | Contains the URL embedded within URL redirect assets. Needed for SSO due to limitations of webview cookies and redirects. |
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 |