All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
addWebhook | POST /webhooks | Add webhook |
addWebhookDocument | POST /private/webhooks/{webhooks+} | Add webhook |
addWebhookTag | POST /webhooks/{webhookId}/tags | Add webhook tag |
deleteWebhook | DELETE /webhooks/{webhookId} | Delete webhook |
getWebhook | GET /webhooks/{webhookId} | Get webhook |
getWebhookTags | GET /webhooks/{webhookId}/tags | Get webhook tags |
getWebhooks | GET /webhooks | Get webhooks |
updateWebhook | PATCH /webhooks/{webhookId} | Update webhook |
AddWebhookResponse addWebhook(addWebhookRequest, siteId)
Add webhook
Create a new webhook; once created, a webhook's id can be provided to an external service, allowing data to be sent, received, and processed via that webhook
// Import classes:
import com.formkiq.client.invoker.ApiClient;
import com.formkiq.client.invoker.ApiException;
import com.formkiq.client.invoker.Configuration;
import com.formkiq.client.invoker.auth.*;
import com.formkiq.client.invoker.models.*;
import com.formkiq.client.api.WebhooksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure AWS Signature V4 authorization
defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
WebhooksApi apiInstance = new WebhooksApi(defaultClient);
AddWebhookRequest addWebhookRequest = new AddWebhookRequest(); // AddWebhookRequest |
String siteId = "siteId_example"; // String | Site Identifier
try {
AddWebhookResponse result = apiInstance.addWebhook(addWebhookRequest, siteId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#addWebhook");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
addWebhookRequest | AddWebhookRequest | ||
siteId | String | Site Identifier | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | 201 CREATED | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |
DocumentId addWebhookDocument(webhooksPlus, body, siteId)
Add webhook
Receive an incoming private webhook and creates a document based on the webhook's body; requires authentication
// Import classes:
import com.formkiq.client.invoker.ApiClient;
import com.formkiq.client.invoker.ApiException;
import com.formkiq.client.invoker.Configuration;
import com.formkiq.client.invoker.auth.*;
import com.formkiq.client.invoker.models.*;
import com.formkiq.client.api.WebhooksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure AWS Signature V4 authorization
defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
WebhooksApi apiInstance = new WebhooksApi(defaultClient);
String webhooksPlus = "webhooksPlus_example"; // String | Web Hook Param
Object body = null; // Object |
String siteId = "siteId_example"; // String | Site Identifier
try {
DocumentId result = apiInstance.addWebhookDocument(webhooksPlus, body, siteId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#addWebhookDocument");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
webhooksPlus | String | Web Hook Param | |
body | Object | ||
siteId | String | Site Identifier | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 OK | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |
addWebhookTag(webhookId, addWebhookTagRequest, siteId)
Add webhook tag
Add a tag to a webhook
// Import classes:
import com.formkiq.client.invoker.ApiClient;
import com.formkiq.client.invoker.ApiException;
import com.formkiq.client.invoker.Configuration;
import com.formkiq.client.invoker.auth.*;
import com.formkiq.client.invoker.models.*;
import com.formkiq.client.api.WebhooksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure AWS Signature V4 authorization
defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
WebhooksApi apiInstance = new WebhooksApi(defaultClient);
String webhookId = "webhookId_example"; // String | Web Hook Param
AddWebhookTagRequest addWebhookTagRequest = new AddWebhookTagRequest(); // AddWebhookTagRequest |
String siteId = "siteId_example"; // String | Site Identifier
try {
apiInstance.addWebhookTag(webhookId, addWebhookTagRequest, siteId);
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#addWebhookTag");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
webhookId | String | Web Hook Param | |
addWebhookTagRequest | AddWebhookTagRequest | ||
siteId | String | Site Identifier | [optional] |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
201 | 200 OK | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |
DeleteResponse deleteWebhook(webhookId, siteId)
Delete webhook
Delete a webhook; this will disable sending, receiving, or processing of data from external services to this webhook
// Import classes:
import com.formkiq.client.invoker.ApiClient;
import com.formkiq.client.invoker.ApiException;
import com.formkiq.client.invoker.Configuration;
import com.formkiq.client.invoker.auth.*;
import com.formkiq.client.invoker.models.*;
import com.formkiq.client.api.WebhooksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure AWS Signature V4 authorization
defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
WebhooksApi apiInstance = new WebhooksApi(defaultClient);
String webhookId = "webhookId_example"; // String | Web Hook Param
String siteId = "siteId_example"; // String | Site Identifier
try {
DeleteResponse result = apiInstance.deleteWebhook(webhookId, siteId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#deleteWebhook");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
webhookId | String | Web Hook Param | |
siteId | String | Site Identifier | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 OK | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |
GetWebhookResponse getWebhook(webhookId, siteId)
Get webhook
Return a webhook's details, i.e., its metadata
// Import classes:
import com.formkiq.client.invoker.ApiClient;
import com.formkiq.client.invoker.ApiException;
import com.formkiq.client.invoker.Configuration;
import com.formkiq.client.invoker.auth.*;
import com.formkiq.client.invoker.models.*;
import com.formkiq.client.api.WebhooksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure AWS Signature V4 authorization
defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
WebhooksApi apiInstance = new WebhooksApi(defaultClient);
String webhookId = "webhookId_example"; // String | Web Hook Param
String siteId = "siteId_example"; // String | Site Identifier
try {
GetWebhookResponse result = apiInstance.getWebhook(webhookId, siteId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#getWebhook");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
webhookId | String | Web Hook Param | |
siteId | String | Site Identifier | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 OK | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |
GetWebhookTagsResponse getWebhookTags(webhookId, siteId)
Get webhook tags
Get a webhook's tags
// Import classes:
import com.formkiq.client.invoker.ApiClient;
import com.formkiq.client.invoker.ApiException;
import com.formkiq.client.invoker.Configuration;
import com.formkiq.client.invoker.auth.*;
import com.formkiq.client.invoker.models.*;
import com.formkiq.client.api.WebhooksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure AWS Signature V4 authorization
defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
WebhooksApi apiInstance = new WebhooksApi(defaultClient);
String webhookId = "webhookId_example"; // String | Web Hook Param
String siteId = "siteId_example"; // String | Site Identifier
try {
GetWebhookTagsResponse result = apiInstance.getWebhookTags(webhookId, siteId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#getWebhookTags");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
webhookId | String | Web Hook Param | |
siteId | String | Site Identifier | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 OK | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |
GetWebhooksResponse getWebhooks(siteId, next, limit)
Get webhooks
Return a list of webhooks; each webhook's id can be provided to an external service, allowing data to be sent, received, and processed via that webhook
// Import classes:
import com.formkiq.client.invoker.ApiClient;
import com.formkiq.client.invoker.ApiException;
import com.formkiq.client.invoker.Configuration;
import com.formkiq.client.invoker.auth.*;
import com.formkiq.client.invoker.models.*;
import com.formkiq.client.api.WebhooksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure AWS Signature V4 authorization
defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
WebhooksApi apiInstance = new WebhooksApi(defaultClient);
String siteId = "siteId_example"; // String | Site Identifier
String next = "next_example"; // String | Next page of results token
String limit = "10"; // String | Limit Results
try {
GetWebhooksResponse result = apiInstance.getWebhooks(siteId, next, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#getWebhooks");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
siteId | String | Site Identifier | [optional] |
next | String | Next page of results token | [optional] |
limit | String | Limit Results | [optional] [default to 10] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 OK | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |
UpdateResponse updateWebhook(webhookId, addWebhookRequest, siteId)
Update webhook
Updates a webhook's details, i.e., its metadata
// Import classes:
import com.formkiq.client.invoker.ApiClient;
import com.formkiq.client.invoker.ApiException;
import com.formkiq.client.invoker.Configuration;
import com.formkiq.client.invoker.auth.*;
import com.formkiq.client.invoker.models.*;
import com.formkiq.client.api.WebhooksApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure AWS Signature V4 authorization
defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
WebhooksApi apiInstance = new WebhooksApi(defaultClient);
String webhookId = "webhookId_example"; // String | Web Hook Param
AddWebhookRequest addWebhookRequest = new AddWebhookRequest(); // AddWebhookRequest |
String siteId = "siteId_example"; // String | Site Identifier
try {
UpdateResponse result = apiInstance.updateWebhook(webhookId, addWebhookRequest, siteId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WebhooksApi#updateWebhook");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
webhookId | String | Web Hook Param | |
addWebhookRequest | AddWebhookRequest | ||
siteId | String | Site Identifier | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 OK | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |