| Description | Returns the version of the Seal Web Interface and the version of the Seal Library. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWIGetVersions")
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns |
SWIVersion (string) : Seal Web Interface version SRVersion (string) : Seal library version |
| Description | Start a session with the Web Report Server using the user name and password (may be optional according to the authentication configured on the server) and returns information of the logged user. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWILogin", {
user: "the user name", // The user name
password: "the password", // The password
token: "an authentication token" // Optional token that can be used in the Security Provider Script
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns |
name (string) : the user name group (string) : the user's group names culture (string) : the user's culture name language (string) : the user's two-letter language code folder (string) : the last folder viewed by the user showfolders (boolean) : true if the user can view the folders editprofile (boolean) : true if the user can edit his profile usertag (string) : custom tag string (e.g. may be used to show a photo of the user) onstartup (integer): action taken after the login (0=Default, 1=Do not execute report, 2=Execute the last report, 3=Execute a specific report) startupreport (string): if onstartup=3, specific report to execute startupreportname (string): if onstartup=3, specific report name report (string): if set, the last report to execute after the login reportname (string): if set, the last report name executed after the login executionmode (integer): execution mode (0=Default thus from group, 1=New Window , 2=Same Window , 3=Always New Window) groupexecutionmode (integer): group execution mode sources ([MetaSource]): array of MetaSource with their connection names and identifiers sessionId (string): the identifier of the user's session changepassword (boolean): true if the user can change his password showresetpassword (boolean): true if the reset password option is active hasagent (boolean): true if an AI Agent is available for the user error (string) : if any error, the error description securitycoderequired (boolean): true if the Two-Factor Authentication is enabled |
| Description | Check the security code if the Two-Factor Authentication has been enabled. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWICheckSecurityCode", {
code: "the security code", // The security code generated in the 'TwoFAGenerationScript' Script after a call to SWILogin()
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns |
The same profile information as returned by SWILogin (name, group, culture, language, folder, executionmode, sources, sessionId, etc.), plus: login (boolean) : true if the login has been re-done error (string) : if any error, the error description |
| Description | Send a reset password email to a user (executes the 'Reset Password Script' of the security configuration). The Reset Password feature must be enabled on the server. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWIResetPassword", {
id: "the user identifier" // The user identifier (e.g. login id or email according to the security configuration)
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns |
An empty result on success. error (string): if any error, the error description |
| Description | Set a new user password from a reset password link (executes the 'Reset Password Script 2' of the security configuration with the identifier and token received in the reset email). |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWIResetPassword2", {
guid: "the reset identifier", // The identifier received in the reset password link
token: "the reset token", // The token received in the reset password link
password1: "the new password", // The new password
password2: "the new password" // The new password confirmation (must be identical)
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns |
An empty result on success. error (string): if any error, the error description |
| Description | Change the password of the logged user. The Change Password feature must be enabled on the server. By default the new password must contain at least 8 characters, including at least one uppercase letter, one number and one special character. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWIChangePassword", {
password: "the current password", // The current password
password1: "the new password", // The new password
password2: "the new password", // The new password confirmation (must be identical)
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns |
An empty result on success. error (string): if any error, the error description |
| Description | Clear the current user session. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWILogout")
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns | error (string): if any error, the error description |
| Description | Returns all the folders of the user (including Personal folders). |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWIGetRootFolders", {
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns |
path (string) : the folder path name (string) : the translated folder name fullname (string): the full path translated of the folder right (integer): folder right (0=No right, 1=Execute reports / View files, 2=Execute reports and outputs / View files, 3=Edit schedules / View files, 4=Edit reports / Manage files) expand (boolean): true if the folder must be expanded in the tree view manage (integer): manage flag for the folder (0=Do not manage sub-folders, 1=Manage sub-folders only as they are defined by the security (no rename or delete allowed), 2=Manage all: create, delete and rename sub-folders folders ([folder]): array of children folders error (string): if any error, the error description |
| Description | Returns the menu of the logged user: recent reports, favorite reports and the custom menu items built by the 'Menu Script' of the user's security groups. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWIGetRootMenu", {
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns |
recentreports ([menuitem]): array of the recent reports executed by the user favorites ([menuitem]): array of the favorite reports of the user reports ([menuitem]): array of custom menu items (filled by the 'Menu Script' of the security groups) error (string): if any error, the error description |
| menuitem |
path (string): the report path name (string): the report display name viewGUID (string): optional, the view GUID to execute outputGUID (string): optional, the output GUID to execute |
| Description | Returns the list of file names and details contained in a folder. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWIGetFolderDetail", {
path: "\\", // The path of the folder
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns |
folder (folder): the current folder description files ([file]): array of files error (string): if any error, the error description |
| file |
path (string): the file path name (string): the translated file name last (string): the last modification date and time isreport (boolean): true if the file is a report right (int): right applied to the folder (0=Execute reports, 1=Execute reports, 2=Schedule reports, 3=Edit reports) |
| Description | Returns the list of file names and details matching a search in the repository. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWISearch", {
path: "\\", // The path of the folder to start the search
pattern: "re", // Pattern contained in the file name of the files returned
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns |
files ([file]): array of files error (string): if any error, the error description |
| file |
path (string): the file path name (string): the translated file name last (string): the last modification date and time isreport (boolean): true if the file is a report right (int): right applied to the folder (0=Execute reports, 1=Execute reports, 2=Schedule reports, 3=Edit reports) |
| Description | Returns the views and outputs of a report. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWIGetReportDetail", {
path: "\\", // The path of the report
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns |
views ([view]): array of views outputs ([output]): array of outputs error (string): if any error, the error description |
| view |
guid (string): the unique identifier of the output name (string): the output name displayname (string): the output name translated |
| output |
guid (string): the unique identifier of the view name (string): the view name displayname (string): the view name translated |
| Description |
Execute a report into a report result and returns the result. Custom restriction values can be set for the execution if they are prompted in the report. In this case the parameters must be prefixed with r0_ (for the restriction 0) with the following suffixes: name for the name of the restriction. operator for the operator applied: Equal, NotEqual, Greater, GreaterEqual, Smaller, SmallerEqual, Between, NotBetween, Contains, NotContains, StartsWith, EndsWith, IsEmpty, IsNotEmpty, IsNull, IsNotNull. value_1 to value_4 if the restriction is not an enumerated list (date format is YYYYMMDD hh:mm:ss). enum_values containing the list of enumerated identifiers separated by commas if the restriction is an enumerated list. Several restrictions can be defined by changing the prefix index. An optional parameter use_default_restrictions (default value is false) can be to true to force the use of the default values for custom restrictions not specified. |
|---|---|
| Call |
var f = $('<form method="post" target="_blank" />').appendTo('body');
f.attr('action', sealServer + "SWExecuteReportToResult");
f.append($('<input/>').attr('name', 'path').attr('value', path)); //the report path, if empty the report definition must be specified
f.append($('<input />').attr('type', 'hidden').attr('name', 'sessionId').attr('value', sessionId)); //the current sessionId
f.append($('<input />').attr('name', 'render').attr('value', JSON.stringify(render))); //true if the report can be rendered (this option is used only if report definition is specified)
f.append($('<input />').attr('name', 'viewGUID').attr('value', viewGUID)); //optional, the view GUID to execute in the report
f.append($('<input />').attr('name', 'outputGUID').attr('value', outputGUID)); //optional, the output GUID to execute in the report
f.append($('<input />').attr('name', 'format').attr('value', "html")); // optional, html by default, print, Excel, PDF, csv, text, XML, Json, etc.
//optional restriction values if defined as prompted in the report
f.append($('<input />').attr('name', 'use_default_restrictions').attr('value', "true")); //true -> e.g. for '"\\Search - Orders.srex', existing country values defined in the report will be used
f.append($('<input />').attr('name', 'r0_name').attr('value', "Quantity"));
f.append($('<input />').attr('name', 'r0_operator').attr('value', "Between"));
f.append($('<input />').attr('name', 'r0_value_1').attr('value', "34"));
f.append($('<input />').attr('name', 'r0_value_2').attr('value', "123"));
f.append($('<input />').attr('name', 'r1_name').attr('value', "Category"));
f.append($('<input />').attr('name', 'r1_operator').attr('value', "Equal"));
f.append($('<input />').attr('name', 'r1_enum_values').attr('value', "2,3,4,7"));
f.append($('<input />').attr('name', 'r2_name').attr('value', "Order Date"));
f.append($('<input />').attr('name', 'r2_operator').attr('value', "Equal"));
f.append($('<input />').attr('name', 'r2_value_1').attr('value', "19940809 00:00:00"));
f.append($('<input />').attr('name', 'r2_value_2').attr('value', "19940810 00:00:00"));
f.append($('<input />').attr('name', 'r2_value_3').attr('value', "19940811 00:00:00"));
f.append($('<input />').attr('name', 'r2_value_4').attr('value', "19940812 00:00:00"));
f.append($('<input />').attr('name', 'r3_name').attr('value', "Customer Contact"));
f.append($('<input />').attr('name', 'r3_operator').attr('value', "Contains"));
f.append($('<input />').attr('name', 'r3_value_1').attr('value', "ar"));
f.children('input').attr('type', 'hidden');
f.submit();
|
| Description |
Execute a report and returns the report html display result content (e.g. html with prompted restrictions). Custom restriction values can be set for the execution if they are prompted in the report as described for SWExecuteReportToResult. |
|---|---|
| Call |
var f = $('<form method="post" target="_blank" />').appendTo('body');
f.attr('action', sealServer + "SWExecuteReport");
f.append($('<input />').attr('name', 'path').attr('value', path)); //the report path, if empty the report definition must be specified
f.append($('<input />').attr('type', 'hidden').attr('name', 'sessionId').attr('value', sessionId)); //the current sessionId
f.append($('<input />').attr('name', 'render').attr('value', JSON.stringify(render))); //true if the report can be rendered (this option is used only if report definition is specified)
f.append($('<input />').attr('name', 'viewGUID').attr('value', viewGUID)); //optional, the view GUID to execute in the report
f.append($('<input />').attr('name', 'outputGUID').attr('value', outputGUID)); //optional, the output GUID to execute in the report
f.children('input').attr('type', 'hidden');
f.submit();
|
| Description | Returns the profile information of the logged user. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWIGetUserProfile")
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns |
authenticated (bool): true if the user is authenticated, if false the other properties are not set The same profile information as returned by SWILogin (name, group, culture, language, folder, executionmode, sources, sessionId, etc.) error (string): if any error, the error description |
| Description | Set the culture and the startup report for the logged user. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWISetUserProfile", {
culture: "it-IT", // the new user's culture name or code
onStartup: 3, //action taken after the login (0=Default, 1=Do not execute report, 2=Execute the last report, 3=Execute a specific report)
startupReport: "/Overview - Sales.srex", // if onStartup=3, the report to execute
startupReportName: "Overview - Sales", // if onStartup=3, the report name to execute
executionMode: 0, //(0=Default, 1=Execute by default in a new Window, 2=Execute in the same Window, 3=Execute always in a new Window)
connections: ["sourceGUID\nconnectionGUID"], // optional, default connection per data source: each entry contains the source GUID and the connection GUID separated by \n
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns | error (string): if any error, the error description |
| Description | Returns the list of cultures available on the server (the 'Web Cultures' of the server configuration, or the cultures of the installed translations if none is defined). The culture identifier can be used in SWISetUserProfile. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWIGetCultures", {
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns |
An array of items: id (string): the culture English name (e.g. "French (France)") val (string): the culture display name (native name and English name) error (string): if any error, the error description |
| Description | Translate a text either from the public translations or the repository translations. If the optional parameter instance is not empty, the repository translations are used. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWITranslate", {
context: "Element", // translation context as defined in Translations.xlsx or RepositoryTranslations.xlsx
instance: "Customers.City", //optional, translation instance as defined in RepositoryTranslations.xlsx
reference: "City", // reference text to translate
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns | text (string): the translated text |
| Description | Delete files or reports from the repository. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWIDeleteFiles", {
paths: "\\report1.srex\n\\report2.srex", // The paths of the files to delete separated by \n
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns | error (string): if any error, the error description |
| Description | Empty the recycle bin of the logged user: permanently delete all the items it contains. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWIEmptyRecycleBin", {
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns | error (string): if any error, the error description |
| Description | Move a file or a report in the repository. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWIMoveFile", {
source: "\\report.srex", // The path of the report to copy or move
destination: "\\newname.srex", // The destination path
copy: true, //true to copy, false to move
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns | error (string): if any error, the error description |
| Description | Create a shortcut (.srln file) in a folder referencing a source report or file. The shortcut is named after the source file and the destination folder must have the Edit right. A shortcut cannot reference another shortcut. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWICreateShortcut", {
source: "\\Samples\\01-Simple list.srex", // The path of the report or file to reference
destination: "\\MyFolder\\", // A path in the destination folder (its directory is used)
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns | error (string): if any error, the error description |
| Description | View a file published in the repository. The response is the file content itself, so the call is typically done with a form post in a new window. |
|---|---|
| Call |
var f = $('<form method="post" target="_blank" />').appendTo('body');
f.attr('action', sealServer + "SWViewFile");
f.append($('<input />').attr('name', 'path').attr('value', "\\report.htm")); //the path of the file to view
f.append($('<input />').attr('type', 'hidden').attr('name', 'sessionId').attr('value', sessionId)); //the current sessionId
f.children('input').attr('type', 'hidden');
f.submit();
|
| Returns | The content of the file. |
| Description | Upload a file in a repository folder (multipart/form-data POST). The destination folder must have the Edit right and allow uploads. |
|---|---|
| Call |
var formData = new FormData();
formData.append("path", "\\MyFolder"); // The path of the destination folder
formData.append("sessionId", sessionId); // The sessionId got from the SWILogin call
formData.append("file", fileInput.files[0]); // The file to upload
$.ajax({
url: "https://sealreport.org/demo/SWUploadFile",
type: "POST",
data: formData,
processData: false,
contentType: false
})
.done(function (data) {
if (data.Status) { /* Do your job here */ }
})
|
| Returns |
Status (boolean): true if the file has been uploaded Message (string): the status message error (string): if any error, the error description |
| Description | Create a sub-folder in the repository. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWICreateFolder", {
path: "\\Samples\\SubFolder", // The path of the folder to create
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns | error (string): if any error, the error description |
| Description | Delete a sub-folder in the repository. The folder must be empty. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWIDeleteFolder", {
path: "\\Samples\\SubFolder", // The path of the folder to delete
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns | error (string): if any error, the error description |
| Description | Rename a sub-folder in the repository. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWIRenameFolder", {
source: "\\Samples\\SubFolder", // The path of the folder to rename
destination: "\\Samples\\NewSubFolder", // The path of the folder to rename
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns | error (string): if any error, the error description |
| Description | Mark or unmark a report as favorite for the logged user (the call toggles the favorite state). For a shortcut, the favorite is recorded against the resolved target report. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWMarkFavorite", {
path: "\\Search - Orders.srex", // The path of the report
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns |
Message (string): the status message error (string): if any error, the error description |
| Description | Rename the personal display label of a favorite report. Only the entry stored in the user's profile is changed, the underlying report file is not modified. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWIRenameFavoriteReport", {
path: "\\Search - Orders.srex", // The path of the favorite report
newName: "My Orders", // The new display label
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns |
name (string): the new display label Message (string): the status message error (string): if any error, the error description |
| Description | Remove a report from the recent reports list of the logged user. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWIRemoveRecentReport", {
path: "\\Search - Orders.srex", // The path of the report to remove from the recent list
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns |
Message (string): the status message error (string): if any error, the error description |
The following endpoints are available when an AI Agent is configured for the logged user (the hasagent property returned by SWILogin is true). A conversation is maintained in the user's session so that follow-up messages retain context.
| Description | Returns the list of AI Agents available to the logged user, together with the currently selected agent. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWIGetUserAgents", {
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns |
agents ([agent]): array of the agents available to the user selectedGuid (string): the GUID of the currently selected agent error (string): if any error, the error description |
| agent |
guid (string): the unique identifier of the agent name (string): the agent name (translated) description (string): the agent description (translated) |
| Description | Select an AI Agent for the current session by GUID. The GUID must belong to one of the agents returned by SWIGetUserAgents. The selection is saved in the user's profile. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWISelectAgent", {
guid: "the agent GUID", // The GUID of the agent to select
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns | error (string): if any error, the error description |
| Description | Returns the list of sample prompts defined for the current AI Agent (translated in the user's culture). |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWIGetAIAgentSamplePrompts", {
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns |
prompts ([string]): array of sample prompts error (string): if any error, the error description |
| Description |
Send a user message to the AI Agent and returns the AI response. The conversation history is kept in the session so follow-up messages retain context. The call may take a long time: while it is in flight, SWIGetAIAgentProgress can be polled to display the progress steps and SWICancelAIAgentResponse can be called to interrupt the response. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWIGetAIAgentResponse", {
message: "the user message", // The message to send to the agent
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.response.startsWith("Error: ")) { /* Do your job here */ }
})
|
| Returns |
response (string): the AI response text (starts with "Error: " if an error occurred) reportActions ([reportaction]): optional, array of reports proposed for execution by the AI (e.g. to render Execute buttons) tokens (integer): optional, the number of tokens used by the exchange cost (number): optional, the cost of the exchange if costs are configured for the AI provider |
| reportaction |
path (string): the report path (can be used with SWExecuteReport) name (string): the report display name outputGUID (string): optional, the output GUID to execute |
| Description | Returns and clears the progress steps (skill loads, tool calls) queued by the AI chat currently running for this session. Poll this while a SWIGetAIAgentResponse call is in flight to show a live step list. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWIGetAIAgentProgress", {
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns |
messages ([string]): array of progress messages since the last call error (string): if any error, the error description |
| Description | Signal the in-progress AI chat call of this session to stop at the next safe boundary (between tool-call iterations). |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWICancelAIAgentResponse", {
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns | error (string): if any error, the error description |
| Description | Rewind the current AI conversation to just before the selected user turn: the user message at the given index and everything after it are removed from the session history. The removed user message text is returned so it can be re-populated in the input box. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWIRewindAIAgent", {
userMessageIndex: 0, // The index of the user message in the conversation (0 for the first user message)
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns |
message (string): the text of the removed user message error (string): if any error, the error description |
| Description | Clear the AI Agent conversation history stored in the current session. |
|---|---|
| Call |
$.post("https://sealreport.org/demo/SWIClearAIAgent", {
sessionId: sessionId // The sessionId got from the SWILogin call
})
.done(function (data) {
if (!data.error) { /* Do your job here */ }
})
|
| Returns | error (string): if any error, the error description |