Constructors

Methods

  • Confirm a successful S3 upload and create the database record. Call this after the direct S3 upload is complete.

    Type Parameters

    • T

    Parameters

    Returns AxiosPromise<default<T>>

    AxiosPromise containing the created Media resource.

  • Generate an S3 Presigned URL for direct upload. Use this for large files (up to 2GB) to bypass the Laravel server.

    Type Parameters

    Parameters

    • filename: string

      The original name of the file.

    • extension: string

      The file extension (e.g., 'mp4').

    Returns AxiosPromise<default<T>>

    AxiosPromise containing upload_url and file_path.

  • Get Steam capsule type information and requirements.

    Parameters

    • capsuleType: string

      The type of Steam capsule.

    Returns any

    Information about the capsule type.

  • Get Steam library logo requirements.

    Returns {
        content: string;
        format: string;
        maxHeight: number;
        maxWidth: number;
        requirement: string;
    }

    Library logo requirements object.

    • content: string
    • format: string
    • maxHeight: number
    • maxWidth: number
    • requirement: string
  • Get Steam screenshot requirements.

    Returns {
        aspectRatio: number;
        content: string;
        format: string;
        minCount: number;
        minHeight: number;
        minWidth: number;
    }

    Screenshot requirements object.

    • aspectRatio: number
    • content: string
    • format: string
    • minCount: number
    • minHeight: number
    • minWidth: number
  • Upload media content using a Blob.

    Type Parameters

    • T

    Parameters

    • blob: Blob

      The Blob object to upload.

    • Optional data: object

      Any additional data to pass along to the upload.

    • Optional params: Record<string, any>
    • Optional onUploadProgress: ((progressEvent) => void)
        • (progressEvent): void
        • Parameters

          • progressEvent: AxiosProgressEvent

          Returns void

    Returns AxiosPromise<default<T>>

    promise

  • Upload media content using a File object.

    Type Parameters

    • T

    Parameters

    • file: File

      The file object to upload.

    • Optional data: object

      Any additional data to pass along to the upload.

    • Optional params: Record<string, any>
    • Optional onUploadProgress: ((progressEvent) => void)
        • (progressEvent): void
        • Parameters

          • progressEvent: AxiosProgressEvent

          Returns void

    Returns AxiosPromise<default<T>>

    promise

  • Upload an audio file to TikTok's asset library via our Media controller.

    Type Parameters

    • T

    Parameters

    • file: File

      The audio file (mp3).

    • scheduler_id: string

      The ID of the scheduler to provide OAuth context.

    Returns AxiosPromise<default<T>>

Generated using TypeDoc