Skip to content

getBrochureDetail ​

Returns the details for a 'single' Brochure (asset). Typically used for deep-linking.

Request ​

http
GET /rest/brochures/{brochureId}

Headers ​

HeaderRequiredDescription
x-nextinteract-authtokenYesAuth token returned from loginUser

Parameters ​

ParameterTypeRequiredDescription
brochureIdYesId of asset being requested
deviceTypeYesDevice type. Defaults to IPAD.
appCodeYesApp code. Defaults to NI.

Response ​

200 OK ​

json
{
  "userId": 8,
  "bId": 3,
  "bName": "MY Brochure 1 (iPad & Desktop)",
  "cId": 3,
  "pId": 3,
  "pName": "MI Company 3 Product",
  "bStatus": "A",
  "bIsInternal": "N",
  "bvId": 5,
  "bvDesc": "Brochure 3, Version 1",
  "bvAsset": "https://s3.amazonaws.com/DEV.com.nextinteract.brochures/3/brochures/5/asset3-v1.zip",
  "bvAssetMD5": "MD5-HASH#1",
  "bvBytes": 14300,
  "bvStatus": "A",
  "bBody": "Body for Brochure 3, Version 1",
  "bImage": "http://dev-sam-images.interact.technology/3/brochureimages/LOGO.jpg",
  "bFormat": "pdf",
  "bModified": 1508098597000,
  "bCreated": 1508098597000,
    "globalId": 7777,
    "htmlAssetRedirectUrl": "http://test.redirect.com/url",
    "bAutoDownload": "Y",
    "bvAutoFillCredentials": "Y",
    "bPushNotificationDefault": "Opt in",
    "bEmailNotificationDefault": "Opt out",
    "bNotifyUserOfExternalUrl": "Y"
}

Response Fields ​

FieldTypeRequiredDescription
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.
bPushNotificationDefaultString(7)NoValue of either "Opt in" or "Opt out" indicating the default for push notifications.
bEmailNotificationDefaultString(7)NoValue of either "Opt in" or "Opt out" indicating the default for email notifications.

Errors ​

ExceptionDescription
WSInvalidParameterExceptionSee Error Definitions
WSInvalidAuthTokenExceptionSee Error Definitions
WSCacheServiceExceptionSee Error Definitions
WSInsufficientPrivilegesExceptionSee Error Definitions
WSBrochureNotFoundExceptionSee Error Definitions
WSBrochureServiceExceptionSee Error Definitions