Keitaro icon

Keitaro

Работа с API Keitaro

Overview

This node integrates with the Keitaro API to manage campaign resources. It supports creating, updating, retrieving, and deleting campaigns by sending appropriate API requests with campaign data in JSON format. This node is useful for automating campaign management tasks such as creating new campaigns with specific configurations or updating existing ones programmatically.

Use Case Examples

  1. Creating a new campaign by providing campaign data in JSON format.
  2. Updating an existing campaign by specifying its ID and new data.
  3. Retrieving information about a specific campaign by its ID.

Properties

Name Meaning
Данные Кампании JSON formatted data representing the campaign details to create or update.

Output

JSON

  • request
    • url - The URL of the API request made to Keitaro.
    • method - HTTP method used for the API request (e.g., POST for create).
    • headers - Headers sent with the API request, including API key and content type.
  • resource - The resource type involved in the operation, here it is 'campaign'.
  • operation - The operation performed, e.g., 'create'.
  • success - Indicates if the operation was successful (true for create).
  • data - The response data from the Keitaro API after creating the campaign.

Dependencies

  • Requires an API key credential for Keitaro API access and the domain URL.

Troubleshooting

  • Ensure the API key and domain are correctly set in the credentials; missing these will cause errors.
  • The campaign data must be valid JSON and not empty; otherwise, the node throws an error.
  • For 'create' operation, the node expects campaign data in JSON format; missing or invalid data will cause failure.
  • If the API response status code is not 2xx, an error with the status code and message is thrown.

Discussion