Appearance
getLatestBrochureUpdates ​
Returns a list of aggregated assets that have been assigned to a User through Team/Event/Individual assignments. These are ordered by most recently created/updated to least recently created/updated and supports paging. Mainly for use by MID as apps tend to do this locally themselves from their Realm local data.
Request ​
http
GET /rest/brochures/latestmodifiedHeaders ​
| Header | Required | Description |
|---|---|---|
x-nextinteract-authtoken | Yes | Auth token returned from loginUser |
Parameters ​
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceType | No | Either "iPad", "iPhone", "Desktop", "Android Tablet" or "Android Phone". If not passed, defaults to "iPad". | |
appCode | string 2 | Yes | Currently only MY. Could support NI in future. |
pageSize | number 1-200 | No | Page size controlling how many records returned per page. Default 50. |
requestPage | number 1-N | No | Page being requested. Default 1. |
Response ​
200 OK ​
Array of Brochure Details JSON objects:
json
[
{
"cId": 3,
"bId": 21,
"userId": 21,
"pId": 21,
"pName": "Prod1",
"bvId": 5,
"bvAssetMD5": "5b790f2e9f2522d8b20504071ddb809e",
"bName": "Bro1",
"bvStatus": "A",
"bvDesc": "v1",
"bvAsset": "https://s3.amazonaws.com/DEV.com.nextinteract.brochures/3/brochures/5/PDFMacLandscapeLandscapeV6.zip",
"bvBytes": 147406,
"bFormat":"pdf"
"bIsInternal": "N",
"bImage": "https://s3.amazonaws.com/DEV.com.nextinteract.brochures/3/brochureimages/21-image.jpg",
"bHeading": "Heading",
"bBody": "Body",
"bStatus": "A",
"globalId": 7777,
"htmlAssetRedirectUrl": "http://test.redirect.com/url",
"bAutoDownload": "Y",
"bvAutoFillCredentials": "Y",
"bPushNotificationDefault": "Opt in",
"bEmailNotificationDefault": "Opt out",
},
{
"cId": 4,
"bId": 22,
"userId": 21,
"pId": 22,
"pName": "Insurance1",
"bvId": 6,
"bvAssetMD5": "c1785c12c3eb37be0edaff3ad127e4ef",
"bName": "Ins1",
"bvStatus": "A",
"bvDesc": "v2",
"bvAsset": "https://s3.amazonaws.com/DEV.com.nextinteract.brochures/4/brochures/6/PDFMacEmailNoToCV6.zip",
"bvBytes": 130063,
"bFormat":"pdf"
"bIsInternal": "N",
"bImage": "https://s3.amazonaws.com/DEV.com.nextinteract.brochures/4/brochureimages/22-image.jpg",
"bHeading": "Head",
"bBody": "Boduy",
"bStatus": "A",
"globalId": 7777,
"htmlAssetRedirectUrl": "http://test.redirect.com/url",
"bAutoDownload": "N",
"bvAutoFillCredentials": "N",
"bPushNotificationDefault": "Opt in",
"bEmailNotificationDefault": "Opt out",
}
]NOTE: the above feed is for My Interact. for Next Interact, the feed is like above, but WITHOUT the bImage, bHeading, bBody keys.
Response Fields ​
| Field | 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. |
bPushNotificationDefault | String(7) | No | Value of either "Opt in" or "Opt out" indicating the default for push notifications. |
bEmailNotificationDefault | String(7) | No | Value of either "Opt in" or "Opt out" indicating the default for email notifications. |
Errors ​
| Exception | Description |
|---|---|
WSInvalidParameterException | See Error Definitions |
WSInvalidAuthTokenException | See Error Definitions |
WSInsufficientPrivilegesException | See Error Definitions |
WSBrochureServiceException | See Error Definitions |
WSCacheServiceException | See Error Definitions |
WSUserServiceException | See Error Definitions |