The Liquit.Applications.Create function lets the end-user add a personal application of their own. This can be a local application or a URL the user wants to save to their workspace.
By default, the Liquit.Application.Create API will return the ID of the freshly created personal application. When the request fails, an error will be returned in the fault object of the response. This can be because an application with the same name already exists.
Request parameters
Based on the type, the following parameters are available:
Name | Description | Value | Required |
---|---|---|---|
type | This can be either path or url | <string> |
Yes |
name | The name of the personal package | <string> |
Yes |
url | The URL that the personal package should open | <string> |
Personal URI only |
path | The path to the executable that should be opened by the Agent | <string> |
Local path only |
icon | The file object used for the icon | <file> |
No |
directory | The start directory the application will use when launched. | <string> |
Local path only |
display | Defines how the window for the application should be opened:
|
<string> |
Local path only |
browser | The browser used to open the webpage.
|
<string> |
Personal URI only |
Example
var type = 'url';
var name = 'friendlyName';
var path = 'https://www.recastsoftware.com';
var icon = $('.icon')[0].files;
Liquit.Applications.Create({
type: type,
name: name,
url: path,
icon: file
}, function (fault, result) {
console.log(fault, result);
});