- Version:
- 1.0.0
- Copyright:
- Copyright (c) 2019. All rights reserved
Namespaces
- Alarms
- ArTargetImageAndMedia
- Asset
- Authentication
- ContentLibrary
- Form
- GeneralDocument
- Job
- Location
- Logger
- Mop
- ObjectRecognition
- Packaging
- Part
- Persona
- RefType
- Site
- User
Methods
-
Appearition.downloadFileAsDataUrl (url, apiVersion, successResponseCallback, failResponseCallback, beforeSendCallback, completeCallback) protectedstatic
Invokes a HTTP GET request to the Appearition platform to download a file and convert it to a base64 data URL
-
Name Type Description urlstring The intended URL
apiVersionstring The version of the API being invoked
successResponseCallbackany a function that will be called when a successful response has been received from the request
failResponseCallbackany a function that will be called when the request failed
beforeSendCallbackany a function that will be called just before the request is made. Use this if you want to do something like pop up a message or even block user input
completeCallbackany a function that will be called one the request completes. This is agnostic of success or failure. You can use this to show a message or unblock user input if you blocked it before send
-
Appearition.getRequest (url, apiVersion, successResponseCallback, failResponseCallback, beforeSendCallback, completeCallback) protectedstatic
Invokes a HTTP GET request to the Appearition platform
-
Name Type Description urlstring The intended URL
apiVersionstring The version of the API being invoked
successResponseCallbackany a function that will be called when a successful response has been received from the request
failResponseCallbackany a function that will be called when the request failed
beforeSendCallbackany a function that will be called just before the request is made. Use this if you want to do something like pop up a message or even block user input
completeCallbackany a function that will be called one the request completes. This is agnostic of success or failure. You can use this to show a message or unblock user input if you blocked it before send
-
Will set up the SDK with your supplied credentials
-
Name Type Description baseApiUrlstring The base URL of the instance of the Appearition platform
appIdstring Your registered application name. Refer to the API Access in the Appearition platform portal
anonymousTokenstring Your generated UUID token which is not linked to a specific user. Refer to the API Access in the Appearition platform portal
channelIdnumber The specific channel you want to login to
-
Appearition.postFile (url, apiVersion, formData, dataType, progressCallback, successResponseCallback, failResponseCallback, beforeSendCallback, completeCallback) protectedstatic
Invokes a HTTP POST request with multipart content to the Appearition platform and provides progress feedback
-
Name Type Description urlstring The intended URL
apiVersionany The version of the API being invoked
formDataobject The raw data that will be posted in the body of the request
dataTypestring the type of data that is being posted in the body of the request (default = json)
progressCallbackany a function that will be called as the upload progresses
successResponseCallbackany a function that will be called when a successful response has been received from the request
failResponseCallbackany a function that will be called when the request failed
beforeSendCallbackany a function that will be called just before the request is made. Use this if you want to do something like pop up a message or even block user input
completeCallbackany a function that will be called one the request completes. This is agnostic of success or failure. You can use this to show a message or unblock user input if you blocked it before send
-
Appearition.postRequest (url, apiVersion, postData, contentType, successResponseCallback, failResponseCallback, beforeSendCallback, completeCallback) protectedstatic
Invokes a HTTP POST request to the Appearition platform
-
Name Type Description urlstring The intended URL
apiVersionany The version of the API being invoked
postDataobject The raw data that will be posted in the body of the request
contentTypestring the type of data that is being posted in the body of the request
successResponseCallbackany a function that will be called when a successful response has been received from the request
failResponseCallbackany a function that will be called when the request failed
beforeSendCallbackany a function that will be called just before the request is made. Use this if you want to do something like pop up a message or even block user input
completeCallbackany a function that will be called one the request completes. This is agnostic of success or failure. You can use this to show a message or unblock user input if you blocked it before send
-
A general construct for injecting logic into requests to the EMS
-
Returns:
Type Description object empty JSON object
Type Definitions
-
A construct that holds key properties for connecting to the Appearition platform
-
Properties:
Name Type Description baseApiUrlstring The URL to the Appearition Platform host
appIdstring Your apps unique identifier that has been registered on the instance of the Appearition platform (refer to API Access screen in portal)
anonymousTokenstring This is a UUID generated by the Appearition platform for your registered application (refer to API Access screen in portal).
sessionTokenstring The unique UUID returned as part of the login process (see authentication)
channelIdnumber Information on the Appearition platform is organised into channels. Depending on your level of subscription, you may have access to one or many channels. You may leave this as zero and it request will return all of your records across all of your channels.
isAuthenticatedboolean true|false. Indicates if the session token is still valid
-
A simple model to hold an item that appears in a list
-
Properties:
Name Type Description Idnumber Identifies the item in the list
Namestring Descriptive text of the item
-
This is data structure hold an item that can be shown in a list for a user to choose from
-
Properties:
Name Type Description Disabledboolean Indicates the item cannot be selected from the list
Selectedboolean Indicates if the item has been selected in the list
Textstring The display text of the item
Valuestring The value of the item in the list. It may be the same as Text or it can differ
Groupobject Not used