Keitaro icon

Keitaro

Работа с API Keitaro

Overview

This node integrates with the Keitaro API to manage various resources such as campaigns, streams, landings, offers, and more. Specifically, for the 'stream' resource with the 'create' operation, it allows users to create a new stream by sending JSON-formatted stream data to the Keitaro API. This is useful for automating the creation of streams in Keitaro, enabling efficient campaign management and traffic routing.

Use Case Examples

  1. Creating a new stream by providing stream data in JSON format to automate campaign traffic management.
  2. Automating the creation of streams to quickly set up traffic flows without manual intervention.

Properties

Name Meaning
Данные Потока JSON-formatted data representing the stream to be created, required for the create and update operations on the stream 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 information like API keys masked.
  • resource - The resource type involved in the operation, e.g., 'stream'.
  • operation - The operation performed, e.g., 'create'.
  • success - Indicates if the operation was successful (true for create operation).
  • data - The data returned from the Keitaro API after creating the stream, typically the created stream's details.

Dependencies

  • Keitaro API with domain and API key credentials

Troubleshooting

  • Ensure that the 'streamData' JSON is correctly formatted and contains all required fields for creating a stream in Keitaro.
  • Verify that the API key and domain credentials are correctly set in the node credentials; missing or incorrect credentials will cause authentication errors.
  • If the API returns an error status, check the error message for details; common issues include invalid data or missing required fields.
  • For 'create' operations, ensure that the 'streamData' property is not empty, as the node throws an error if no data is provided.

Links

  • Keitaro API Documentation - Official documentation for the Keitaro API, useful for understanding the required data format and available endpoints.

Discussion