Keitaro icon

Keitaro

Работа с API Keitaro

Overview

This node interacts with the Keitaro API to perform various operations on different resources such as users, campaigns, streams, landings, offers, and more. Specifically, for the 'Пользователь' (User) resource with the 'Получить' (Get) operation, it retrieves information about a user by their user ID. This node is useful for automating data retrieval from Keitaro, enabling workflows that require user data fetching, updating, or deletion. For example, it can be used to fetch user details for reporting or integration with other systems.

Use Case Examples

  1. Retrieve user information by providing the user ID to get detailed user data from Keitaro.
  2. Update user information by specifying the user ID and new data in JSON format.

Properties

Name Meaning
ID Пользователя The unique identifier of the user to perform the operation on. Required for get, update, and delete operations on the user resource.

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 data like API keys masked.
  • resource - The resource type involved in the operation, e.g., 'user'.
  • operation - The operation performed, e.g., 'get'.
  • data - The data returned from the Keitaro API for the requested resource and operation.
  • success - Indicates if the operation was successful (true) or not (false).
  • error - If an error occurred, this field contains error details including message, stack trace, HTTP status, and response data.

Dependencies

  • Keitaro API key credential
  • Keitaro domain URL

Troubleshooting

  • Ensure the user ID is provided for get, update, and delete operations; missing ID will cause errors.
  • Verify that the Keitaro API key and domain are correctly set in credentials; missing or incorrect credentials will prevent API access.
  • For 'stats' resource, only 'getAll' operation is supported; using other operations will throw an error.
  • Check API response status codes; non-2xx responses indicate API errors which are reported with status and message.
  • If JSON parsing of the API response fails, raw response is logged for debugging.

Links

Discussion