Constructors

Methods

Constructors

Methods

  • Assigns an available access key to an influencer for a specific campaign. This will find the next available key for the given platform and assign it.

    Type Parameters

    • T

    Parameters

    • campaign_id: string

      The ID of the campaign.

    • user_id: string

      The ID of the user (influencer).

    • data: {
          platform: string;
      }

      The platform for which to assign a key.

      • platform: string

        The platform of the key to assign (e.g., 'steam').

    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

    promise

  • Manually trigger a real-time profile enrichment for a sourced creator. This synchronously scrapes and parses social media profiles to enrich the creator's data and returns the updated record.

    Type Parameters

    • T

    Parameters

    • campaign_id: string

      The UUID of the campaign.

    • sourced_creator_id: string

      The UUID of the sourced creator to enrich.

    Returns AxiosPromise<default<T>>

    promise containing the fully enriched SourcedCreator object.

  • Export sourced creators for a campaign to a CSV or XLSX file. This method applies the same filtering and sorting parameters as getSourcedCreators. The browser will automatically trigger a download for the returned file.

    Type Parameters

    • T

    Parameters

    • campaign_id: string

      The UUID of the campaign.

    • params: {
          format: "csv" | "xlsx";
          [key: string]: any;
      }

      Query parameters for the export, including the required 'format' and any filters.

      • [key: string]: any
      • format: "csv" | "xlsx"

        The desired file format ('csv' or 'xlsx').

    Returns AxiosPromise<default<T>>

    A promise that resolves with the file blob for download.

  • Get a single sourced creator.

    Type Parameters

    • T

    Parameters

    • campaign_id: string

      The UUID of the campaign.

    • sourced_creator_id: string

      The UUID of the sourced creator.

    Returns AxiosPromise<default<T>>

    promise

  • Get sourced creators for a campaign from the database.

    Type Parameters

    • T

    Parameters

    • campaign_id: string

      The UUID of the campaign.

    • Optional params: Record<string, any>

      Query parameters for filtering, sorting, and pagination.

    Returns AxiosPromise<default<T>>

    promise

  • Find and save content creators for selected games to the database.

    Type Parameters

    • T

    Parameters

    • campaign_id: string

      The UUID of the campaign.

    • data: object

      The search criteria (source, igdb_ids, etc.).

    Returns AxiosPromise<default<T>>

    promise

  • Find and save Twitch creators for selected games to the database.

    Type Parameters

    • T

    Parameters

    • campaign_id: string

      The UUID of the campaign.

    • data: object

      The search criteria (source, igdb_ids, etc.).

    Returns AxiosPromise<default<T>>

    promise

  • Find and save YouTube creators for selected games to the database.

    Type Parameters

    • T

    Parameters

    • campaign_id: string

      The UUID of the campaign.

    • data: object

      The search criteria (igdb_ids, period).

    Returns AxiosPromise<default<T>>

    promise

  • Find content creators for selected games. This does not save them to the database.

    Type Parameters

    • T

    Parameters

    • campaign_id: string

      The UUID of the campaign.

    • data: object

      The search criteria (source, igdb_ids, etc.).

    Returns AxiosPromise<default<T>>

    promise

  • Get full game details from a list of IGDB IDs.

    Type Parameters

    • T

    Parameters

    • campaign_id: string

      The UUID of the campaign.

    • data: {
          igdb_ids: number[];
      }

      An object containing the array of IGDB IDs.

      • igdb_ids: number[]

        An array of IGDB game IDs.

    Returns AxiosPromise<default<T>>

    promise

  • Find popular similar games from IGDB.

    Type Parameters

    • T

    Parameters

    • campaign_id: string

      The UUID of the campaign.

    • params: Record<string, any>

      Query parameters (e.g., igdb_id, limit).

    Returns AxiosPromise<default<T>>

    promise

  • Search IGDB for any game by a query string.

    Type Parameters

    • T

    Parameters

    • campaign_id: string

      The UUID of the campaign (for permission checking).

    • params: {
          limit?: number;
          search_query: string;
      }

      Query parameters including 'search_query' and optional 'limit'.

      • Optional limit?: number
      • search_query: string

    Returns AxiosPromise<default<T>>

    promise

  • Search IGDB for the campaign's game.

    Type Parameters

    • T

    Parameters

    • campaign_id: string

      The UUID of the campaign.

    • Optional params: Record<string, any>

      Query parameters (e.g., search_query, limit).

    Returns AxiosPromise<default<T>>

    promise

  • Update a sourced creator (e.g., approve or reject).

    Type Parameters

    • T

    Parameters

    • campaign_id: string

      The UUID of the campaign.

    • sourced_creator_id: string

      The UUID of the sourced creator to update.

    • data: object

      The update data (e.g., is_approved, is_rejected).

    Returns AxiosPromise<default<T>>

    promise

  • Update campaign sourcing settings.

    Type Parameters

    • T

    Parameters

    • campaign_id: string

      The UUID of the campaign.

    • data: object

      The settings to update (igdb_id, similar_game_igdb_ids, etc.).

    Returns AxiosPromise<default<T>>

    promise

Generated using TypeDoc