Keitaro icon

Keitaro

Работа с API Keitaro

Overview

This node integrates with the Keitaro API to perform various operations on different resources, including statistics. Specifically, for the 'Статистика' (Statistics) resource, it supports only the 'Создать' (Create) operation, which allows users to create new statistics data by sending JSON-formatted statistics data to the Keitaro API. This node is useful for automating the creation and management of statistical data within the Keitaro platform, enabling workflows that require programmatic updates or additions to statistics.

Use Case Examples

  1. Creating new statistics data by providing JSON-formatted statistics information to the Keitaro API.
  2. Automating the update of campaign or conversion statistics by integrating with Keitaro through this node.

Properties

Name Meaning
Данные Статистики JSON-formatted statistics data to be sent to the Keitaro API for creation or update of statistics.

Output

JSON

  • request
    • url - The URL of the API request made to Keitaro.
    • method - The HTTP method used for the API request.
    • headers - Headers sent with the API request, with sensitive API keys masked.
  • resource - The resource type involved in the operation (e.g., 'stats').
  • operation - The operation performed (e.g., 'create').
  • success - Indicates if the operation was successful (true/false).
  • data - The data returned from the Keitaro API after the operation.
  • error - Indicates if there was an error during the operation (true/false).
  • message - Error message if an error occurred.
  • stack - Error stack trace if an error occurred.
  • url - The URL of the failed API request if an error occurred.
  • status - HTTP status code of the failed API request if an error occurred.
  • statusText - HTTP status text of the failed API request if an error occurred.
  • responseData - Response data from the failed API request if an error occurred.

Dependencies

  • Keitaro API with domain and API key credentials required for authentication.

Troubleshooting

  • Ensure that the 'resource' parameter is set to 'stats' and the operation is 'create' or 'update' as other operations are not supported for the 'stats' resource.
  • Verify that the 'statsData' JSON input is correctly formatted and not empty, as the node requires valid JSON data for the operation.
  • Check that the Keitaro API credentials (domain and API key) are correctly configured and valid to avoid authentication errors.
  • If the API returns an error status, review the error message and status code for details; common issues include invalid data format or missing required fields in the JSON.
  • Use the node's error output to debug issues by examining the error message, stack trace, and response data.

Discussion