Skip to content

getEventBrochuresForUser ​

Returns Event Brochures for a given MI User and Event

Request ​

http
GET /rest/brochures/event/{eId}

Headers ​

HeaderRequiredDescription
x-nextinteract-authtokenYesAuth token returned from loginUser

Parameters ​

PATH PARAMS:

ParameterTypeRequiredDescription
eId-YeseventId of an Event

QUERY PARAMS:

ParameterTypeRequiredDescription
deviceType-NoEither "iPad", "iPhone", "Desktop", "Android Tablet" or "Android Phone". Defaults to iPad
appCode-NoDefaults 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 ​

ParameterTypeRequiredDescription
globalIdIntegerNoDefines the SSO global Id indicating that the asset is an SSO URL Asset.
htmlAssetRedirectUrlString[1024]NoContains the URL embedded within URL redirect assets. Needed for SSO due to limitations of webview cookies and redirects.

Errors ​

ExceptionDescription
WSEventServiceUnavailableExceptionSee Error Definitions
WSEventServiceUnavailableExceptionSee Error Definitions
WSInvalidParameterExceptionSee Error Definitions
WSInvalidAuthTokenExceptionSee Error Definitions
WSEventServiceExceptionSee Error Definitions
WSCacheServiceExceptionSee Error Definitions
WSInternalExceptionSee Error Definitions