Appearance
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}/tokenHeaders ​
| Header | Required | Description |
|---|---|---|
x-nextinteract-authtoken | Yes | Auth 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 ​
| Header | Description |
|---|---|
x-nextinteract-tmp-access-token | AWS access key for temporary access |
x-nextinteract-tmp-secret-token | AWS secret key for temporary access |
x-nextinteract-tmp-session-token | AWS session token for temporary access |
x-nextinteract-tmp-token-expiry-seconds | Number of seconds till the above expire |
x-nextinteract-tmp-token-expiry-datetime-millis | Actual UTC date/time millis when the above will expire |
x-nextinteract-s3-region | The AWS region in which STS, Cognito etc relate to. Often needed by AWS SDK or signing |
Errors ​
| Exception | Description |
|---|---|
WSInvalidParameterException | See Error Definitions |
WSInvalidAuthTokenException | See Error Definitions |
WSInsufficientPrivilegesException | See Error Definitions |
WSAuthorisationServiceException | See Error Definitions |
WSAwsExpiredTokenException | See Error Definitions |
WSBrochureNotFoundException | See Error Definitions |
WSCacheServiceException | See Error Definitions |
WSCognitoServiceException | See Error Definitions |
WSSmartLibNotFoundException | See Error Definitions |
WSSmartLibraryServiceException | See Error Definitions |
WSSTSServiceException | See Error Definitions |