All URIs are relative to http://localhost/api/1.0
Method | HTTP request | Description |
---|---|---|
CreateScript | POST /scripts | Save a new script |
DeleteScript | DELETE /scripts/scriptsId | Delete a script |
DuplicateScreen | PUT /scripts/scriptsId/duplicate | duplicate a script |
GetScripts | GET /scripts | Returns all scripts that the user has access to |
GetScriptsById | GET /scripts/scriptsId | Get single script by ID |
GetScriptsPreview | GET /scripts/{script_id}/preview | Test script code without saving it |
UpdateScript | PUT /scripts/scriptsId | Update a script |
Scripts CreateScript (ScriptsEditable scriptsEditable)
Save a new script
using System.Diagnostics;
using ProcessMakerSDK.Api;
using ProcessMakerSDK.Client;
using ProcessMakerSDK.Model;
namespace Example
{
public class CreateScriptExample
{
public static void Main()
{
Configuration.Default.BasePath = "http://localhost/api/1.0";
// Configure OAuth2 access token for authorization: pm_api_auth_code
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
// Configure API key authorization: pm_api_key
Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new ScriptsApi(Configuration.Default);
var scriptsEditable = new ScriptsEditable(); // ScriptsEditable |
try
{
// Save a new script
Scripts result = apiInstance.CreateScript(scriptsEditable);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ScriptsApi.CreateScript: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
scriptsEditable | ScriptsEditable |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Scripts DeleteScript (string scriptId)
Delete a script
using System.Diagnostics;
using ProcessMakerSDK.Api;
using ProcessMakerSDK.Client;
using ProcessMakerSDK.Model;
namespace Example
{
public class DeleteScriptExample
{
public static void Main()
{
Configuration.Default.BasePath = "http://localhost/api/1.0";
// Configure OAuth2 access token for authorization: pm_api_auth_code
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
// Configure API key authorization: pm_api_key
Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new ScriptsApi(Configuration.Default);
var scriptId = scriptId_example; // string | ID of script to return
try
{
// Delete a script
Scripts result = apiInstance.DeleteScript(scriptId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ScriptsApi.DeleteScript: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
scriptId | string | ID of script to return |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Scripts DuplicateScreen (string screensId, ScreensEditable screensEditable)
duplicate a script
using System.Diagnostics;
using ProcessMakerSDK.Api;
using ProcessMakerSDK.Client;
using ProcessMakerSDK.Model;
namespace Example
{
public class DuplicateScreenExample
{
public static void Main()
{
Configuration.Default.BasePath = "http://localhost/api/1.0";
// Configure OAuth2 access token for authorization: pm_api_auth_code
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
// Configure API key authorization: pm_api_key
Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new ScriptsApi(Configuration.Default);
var screensId = screensId_example; // string | ID of script to return
var screensEditable = new ScreensEditable(); // ScreensEditable |
try
{
// duplicate a script
Scripts result = apiInstance.DuplicateScreen(screensId, screensEditable);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ScriptsApi.DuplicateScreen: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
screensId | string | ID of script to return | |
screensEditable | ScreensEditable |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse20017 GetScripts (string filter = null, string orderBy = null, string orderDirection = null, int? perPage = null, string include = null)
Returns all scripts that the user has access to
using System.Diagnostics;
using ProcessMakerSDK.Api;
using ProcessMakerSDK.Client;
using ProcessMakerSDK.Model;
namespace Example
{
public class GetScriptsExample
{
public static void Main()
{
Configuration.Default.BasePath = "http://localhost/api/1.0";
// Configure OAuth2 access token for authorization: pm_api_auth_code
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
// Configure API key authorization: pm_api_key
Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new ScriptsApi(Configuration.Default);
var filter = filter_example; // string | Filter results by string. Searches Name, Description, and Status. Status must match exactly. Others can be a substring. (optional)
var orderBy = orderBy_example; // string | Field to order results by (optional)
var orderDirection = orderDirection_example; // string | (optional) (default to asc)
var perPage = 56; // int? | (optional)
var include = include_example; // string | Include data from related models in payload. Comma seperated list. (optional) (default to "")
try
{
// Returns all scripts that the user has access to
InlineResponse20017 result = apiInstance.GetScripts(filter, orderBy, orderDirection, perPage, include);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ScriptsApi.GetScripts: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
filter | string | Filter results by string. Searches Name, Description, and Status. Status must match exactly. Others can be a substring. | [optional] |
orderBy | string | Field to order results by | [optional] |
orderDirection | string | [optional] [default to asc] | |
perPage | int? | [optional] | |
include | string | Include data from related models in payload. Comma seperated list. | [optional] [default to ""] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Scripts GetScriptsById (string scriptId)
Get single script by ID
using System.Diagnostics;
using ProcessMakerSDK.Api;
using ProcessMakerSDK.Client;
using ProcessMakerSDK.Model;
namespace Example
{
public class GetScriptsByIdExample
{
public static void Main()
{
Configuration.Default.BasePath = "http://localhost/api/1.0";
// Configure OAuth2 access token for authorization: pm_api_auth_code
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
// Configure API key authorization: pm_api_key
Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new ScriptsApi(Configuration.Default);
var scriptId = scriptId_example; // string | ID of script to return
try
{
// Get single script by ID
Scripts result = apiInstance.GetScriptsById(scriptId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ScriptsApi.GetScriptsById: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
scriptId | string | ID of script to return |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object GetScriptsPreview (int? scriptId, string data = null, string config = null, string code = null)
Test script code without saving it
using System.Diagnostics;
using ProcessMakerSDK.Api;
using ProcessMakerSDK.Client;
using ProcessMakerSDK.Model;
namespace Example
{
public class GetScriptsPreviewExample
{
public static void Main()
{
Configuration.Default.BasePath = "http://localhost/api/1.0";
// Configure OAuth2 access token for authorization: pm_api_auth_code
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
// Configure API key authorization: pm_api_key
Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new ScriptsApi(Configuration.Default);
var scriptId = 56; // int? |
var data = data_example; // string | (optional)
var config = config_example; // string | (optional)
var code = code_example; // string | (optional)
try
{
// Test script code without saving it
Object result = apiInstance.GetScriptsPreview(scriptId, data, config, code);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ScriptsApi.GetScriptsPreview: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
scriptId | int? | ||
data | string | [optional] | |
config | string | [optional] | |
code | string | [optional] |
Object
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Scripts UpdateScript (string scriptId, ScriptsEditable scriptsEditable)
Update a script
using System.Diagnostics;
using ProcessMakerSDK.Api;
using ProcessMakerSDK.Client;
using ProcessMakerSDK.Model;
namespace Example
{
public class UpdateScriptExample
{
public static void Main()
{
Configuration.Default.BasePath = "http://localhost/api/1.0";
// Configure OAuth2 access token for authorization: pm_api_auth_code
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
// Configure API key authorization: pm_api_key
Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new ScriptsApi(Configuration.Default);
var scriptId = scriptId_example; // string | ID of script to return
var scriptsEditable = new ScriptsEditable(); // ScriptsEditable |
try
{
// Update a script
Scripts result = apiInstance.UpdateScript(scriptId, scriptsEditable);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ScriptsApi.UpdateScript: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
scriptId | string | ID of script to return | |
scriptsEditable | ScriptsEditable |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]