Skip to content

getTokenForSmartLibraryAccess ​

cId - CompanyId (OPTIONAL for Next Interact, MANDATORY for My Interact) deviceType - either iPad, iPhone, Desktop, Android Tablet or Android Phone. If not passed, defaults to iPad. appCode (mandatory) - either NI or MY. If not passed, defaults to NI.

Request ​

http
GET /rest/smartlib/{smartLibId}/token

Headers ​

HeaderRequiredDescription
x-nextinteract-authtokenYesAuth token returned from loginUser

Parameters ​

smartLibId - path parameter of smartLib Id that user is requesting entries for

Response ​

200 OK ​

N/A. See response headers.

Response Headers ​

HeaderDescription
x-nextinteract-tmp-access-tokenAWS access key for temporary access
x-nextinteract-tmp-secret-tokenAWS secret key for temporary access
x-nextinteract-tmp-session-tokenAWS session token for temporary access
x-nextinteract-tmp-token-expiry-secondsNumber of seconds till the above expire
x-nextinteract-tmp-token-expiry-datetime-millisActual UTC date/time millis when the above will expire
x-nextinteract-s3-regionThe AWS region in which STS, Cognito etc relate to. Often needed by AWS SDK or signing

Errors ​

ExceptionDescription
WSInvalidParameterExceptionSee Error Definitions
WSInvalidAuthTokenExceptionSee Error Definitions
WSInsufficientPrivilegesExceptionSee Error Definitions
WSAuthorisationServiceExceptionSee Error Definitions
WSAwsExpiredTokenExceptionSee Error Definitions
WSBrochureNotFoundExceptionSee Error Definitions
WSCacheServiceExceptionSee Error Definitions
WSCognitoServiceExceptionSee Error Definitions
WSSmartLibNotFoundExceptionSee Error Definitions
WSSmartLibraryServiceExceptionSee Error Definitions
WSSTSServiceExceptionSee Error Definitions