All URIs are relative to https://zernio.com/api
| Method | HTTP request | Description |
|---|---|---|
| createCommentAutomation | POST /v1/comment-automations | Create a comment-to-DM automation |
| createCommentAutomationWithHttpInfo | POST /v1/comment-automations | Create a comment-to-DM automation |
| deleteCommentAutomation | DELETE /v1/comment-automations/{automationId} | Delete automation and all logs |
| deleteCommentAutomationWithHttpInfo | DELETE /v1/comment-automations/{automationId} | Delete automation and all logs |
| getCommentAutomation | GET /v1/comment-automations/{automationId} | Get automation details with recent logs |
| getCommentAutomationWithHttpInfo | GET /v1/comment-automations/{automationId} | Get automation details with recent logs |
| listCommentAutomationLogs | GET /v1/comment-automations/{automationId}/logs | List trigger logs for an automation |
| listCommentAutomationLogsWithHttpInfo | GET /v1/comment-automations/{automationId}/logs | List trigger logs for an automation |
| listCommentAutomations | GET /v1/comment-automations | List comment-to-DM automations |
| listCommentAutomationsWithHttpInfo | GET /v1/comment-automations | List comment-to-DM automations |
| updateCommentAutomation | PATCH /v1/comment-automations/{automationId} | Update automation settings |
| updateCommentAutomationWithHttpInfo | PATCH /v1/comment-automations/{automationId} | Update automation settings |
CreateCommentAutomation200Response createCommentAutomation(createCommentAutomationRequest)
Create a comment-to-DM automation
Create a keyword-triggered DM automation on an Instagram or Facebook post. When someone comments a matching keyword, they automatically receive a DM. Only one active automation per post is allowed.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.CommentAutomationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
CommentAutomationsApi apiInstance = new CommentAutomationsApi(defaultClient);
CreateCommentAutomationRequest createCommentAutomationRequest = new CreateCommentAutomationRequest(); // CreateCommentAutomationRequest |
try {
CreateCommentAutomation200Response result = apiInstance.createCommentAutomation(createCommentAutomationRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CommentAutomationsApi#createCommentAutomation");
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 |
|---|---|---|---|
| createCommentAutomationRequest | CreateCommentAutomationRequest |
CreateCommentAutomation200Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Automation created | - |
| 400 | Validation error | - |
| 401 | Unauthorized | - |
| 409 | Active automation already exists for this post | - |
ApiResponse createCommentAutomation createCommentAutomationWithHttpInfo(createCommentAutomationRequest)
Create a comment-to-DM automation
Create a keyword-triggered DM automation on an Instagram or Facebook post. When someone comments a matching keyword, they automatically receive a DM. Only one active automation per post is allowed.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.CommentAutomationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
CommentAutomationsApi apiInstance = new CommentAutomationsApi(defaultClient);
CreateCommentAutomationRequest createCommentAutomationRequest = new CreateCommentAutomationRequest(); // CreateCommentAutomationRequest |
try {
ApiResponse<CreateCommentAutomation200Response> response = apiInstance.createCommentAutomationWithHttpInfo(createCommentAutomationRequest);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling CommentAutomationsApi#createCommentAutomation");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| createCommentAutomationRequest | CreateCommentAutomationRequest |
ApiResponse<CreateCommentAutomation200Response>
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Automation created | - |
| 400 | Validation error | - |
| 401 | Unauthorized | - |
| 409 | Active automation already exists for this post | - |
void deleteCommentAutomation(automationId)
Delete automation and all logs
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.CommentAutomationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
CommentAutomationsApi apiInstance = new CommentAutomationsApi(defaultClient);
String automationId = "automationId_example"; // String |
try {
apiInstance.deleteCommentAutomation(automationId);
} catch (ApiException e) {
System.err.println("Exception when calling CommentAutomationsApi#deleteCommentAutomation");
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 |
|---|---|---|---|
| automationId | String |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Automation deleted | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ApiResponse deleteCommentAutomation deleteCommentAutomationWithHttpInfo(automationId)
Delete automation and all logs
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.CommentAutomationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
CommentAutomationsApi apiInstance = new CommentAutomationsApi(defaultClient);
String automationId = "automationId_example"; // String |
try {
ApiResponse<Void> response = apiInstance.deleteCommentAutomationWithHttpInfo(automationId);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
} catch (ApiException e) {
System.err.println("Exception when calling CommentAutomationsApi#deleteCommentAutomation");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| automationId | String |
ApiResponse
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Automation deleted | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
GetCommentAutomation200Response getCommentAutomation(automationId)
Get automation details with recent logs
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.CommentAutomationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
CommentAutomationsApi apiInstance = new CommentAutomationsApi(defaultClient);
String automationId = "automationId_example"; // String |
try {
GetCommentAutomation200Response result = apiInstance.getCommentAutomation(automationId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CommentAutomationsApi#getCommentAutomation");
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 |
|---|---|---|---|
| automationId | String |
GetCommentAutomation200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Automation details with stats and recent trigger logs | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ApiResponse getCommentAutomation getCommentAutomationWithHttpInfo(automationId)
Get automation details with recent logs
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.CommentAutomationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
CommentAutomationsApi apiInstance = new CommentAutomationsApi(defaultClient);
String automationId = "automationId_example"; // String |
try {
ApiResponse<GetCommentAutomation200Response> response = apiInstance.getCommentAutomationWithHttpInfo(automationId);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling CommentAutomationsApi#getCommentAutomation");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| automationId | String |
ApiResponse<GetCommentAutomation200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Automation details with stats and recent trigger logs | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ListCommentAutomationLogs200Response listCommentAutomationLogs(automationId, status, limit, skip)
List trigger logs for an automation
Paginated list of every comment that triggered this automation, with send status and commenter info.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.CommentAutomationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
CommentAutomationsApi apiInstance = new CommentAutomationsApi(defaultClient);
String automationId = "automationId_example"; // String |
String status = "sent"; // String | Filter by result status
Integer limit = 50; // Integer |
Integer skip = 0; // Integer |
try {
ListCommentAutomationLogs200Response result = apiInstance.listCommentAutomationLogs(automationId, status, limit, skip);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CommentAutomationsApi#listCommentAutomationLogs");
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 |
|---|---|---|---|
| automationId | String | ||
| status | String | Filter by result status | [optional] [enum: sent, failed, skipped] |
| limit | Integer | [optional] [default to 50] | |
| skip | Integer | [optional] [default to 0] |
ListCommentAutomationLogs200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Trigger logs with pagination | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ApiResponse listCommentAutomationLogs listCommentAutomationLogsWithHttpInfo(automationId, status, limit, skip)
List trigger logs for an automation
Paginated list of every comment that triggered this automation, with send status and commenter info.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.CommentAutomationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
CommentAutomationsApi apiInstance = new CommentAutomationsApi(defaultClient);
String automationId = "automationId_example"; // String |
String status = "sent"; // String | Filter by result status
Integer limit = 50; // Integer |
Integer skip = 0; // Integer |
try {
ApiResponse<ListCommentAutomationLogs200Response> response = apiInstance.listCommentAutomationLogsWithHttpInfo(automationId, status, limit, skip);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling CommentAutomationsApi#listCommentAutomationLogs");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| automationId | String | ||
| status | String | Filter by result status | [optional] [enum: sent, failed, skipped] |
| limit | Integer | [optional] [default to 50] | |
| skip | Integer | [optional] [default to 0] |
ApiResponse<ListCommentAutomationLogs200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Trigger logs with pagination | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ListCommentAutomations200Response listCommentAutomations(profileId)
List comment-to-DM automations
List all comment-to-DM automations for a profile. Returns automations with their stats.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.CommentAutomationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
CommentAutomationsApi apiInstance = new CommentAutomationsApi(defaultClient);
String profileId = "profileId_example"; // String | Filter by profile. Omit to list across all profiles
try {
ListCommentAutomations200Response result = apiInstance.listCommentAutomations(profileId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CommentAutomationsApi#listCommentAutomations");
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 |
|---|---|---|---|
| profileId | String | Filter by profile. Omit to list across all profiles | [optional] |
ListCommentAutomations200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Automations list | - |
| 401 | Unauthorized | - |
ApiResponse listCommentAutomations listCommentAutomationsWithHttpInfo(profileId)
List comment-to-DM automations
List all comment-to-DM automations for a profile. Returns automations with their stats.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.CommentAutomationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
CommentAutomationsApi apiInstance = new CommentAutomationsApi(defaultClient);
String profileId = "profileId_example"; // String | Filter by profile. Omit to list across all profiles
try {
ApiResponse<ListCommentAutomations200Response> response = apiInstance.listCommentAutomationsWithHttpInfo(profileId);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling CommentAutomationsApi#listCommentAutomations");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| profileId | String | Filter by profile. Omit to list across all profiles | [optional] |
ApiResponse<ListCommentAutomations200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Automations list | - |
| 401 | Unauthorized | - |
UpdateCommentAutomation200Response updateCommentAutomation(automationId, updateCommentAutomationRequest)
Update automation settings
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.CommentAutomationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
CommentAutomationsApi apiInstance = new CommentAutomationsApi(defaultClient);
String automationId = "automationId_example"; // String |
UpdateCommentAutomationRequest updateCommentAutomationRequest = new UpdateCommentAutomationRequest(); // UpdateCommentAutomationRequest |
try {
UpdateCommentAutomation200Response result = apiInstance.updateCommentAutomation(automationId, updateCommentAutomationRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CommentAutomationsApi#updateCommentAutomation");
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 |
|---|---|---|---|
| automationId | String | ||
| updateCommentAutomationRequest | UpdateCommentAutomationRequest | [optional] |
UpdateCommentAutomation200Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Automation updated | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ApiResponse updateCommentAutomation updateCommentAutomationWithHttpInfo(automationId, updateCommentAutomationRequest)
Update automation settings
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.CommentAutomationsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
CommentAutomationsApi apiInstance = new CommentAutomationsApi(defaultClient);
String automationId = "automationId_example"; // String |
UpdateCommentAutomationRequest updateCommentAutomationRequest = new UpdateCommentAutomationRequest(); // UpdateCommentAutomationRequest |
try {
ApiResponse<UpdateCommentAutomation200Response> response = apiInstance.updateCommentAutomationWithHttpInfo(automationId, updateCommentAutomationRequest);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling CommentAutomationsApi#updateCommentAutomation");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| automationId | String | ||
| updateCommentAutomationRequest | UpdateCommentAutomationRequest | [optional] |
ApiResponse<UpdateCommentAutomation200Response>
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Automation updated | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |