SDK wrapper for the PR Directory API.

The PR directory is read-friendly by default: public endpoints expose searchable publications, people, feeds, stories, tags, and reporting metrics. Authenticated title admins can request title-specific research and review-only outreach drafts, and site admins can queue verification or feed refresh jobs.

Constructors

Methods

  • Search PR people and roles across all known publications.

    Type Parameters

    Parameters

    Returns AxiosPromise<default<T>>

    Example

    Glitch.api.PrDirectory.listPeople({
    q: "reviews editor",
    has_email: true,
    role_category: "editor",
    });
  • Search gaming-focused PR publications, independent blogs, and podcasts.

    Type Parameters

    Parameters

    Returns AxiosPromise<default<T>>

    Example

    Glitch.api.PrDirectory.listPublications({
    q: "indie RPG",
    has_email: true,
    eligibility_status: "eligible",
    sort: "-last_verified_at",
    });
  • Create a formatted, review-only PR email draft for a selected title target. The backend returns HTML with paragraphs, bullets, and links but sends no email.

    Type Parameters

    Parameters

    Returns AxiosPromise<default<T>>

  • Match a registered game title to PR outlets. Requires an auth token for a user who can administer the requested title.

    Type Parameters

    Parameters

    Returns AxiosPromise<default<T>>

  • Retrieve one feed with freshness metadata and recent imported stories. Pass include_raw: true to request the stored XML/RSS payload.

    Type Parameters

    Parameters

    Returns AxiosPromise<default<T>>

  • Retrieve one PR person profile with their outlet roles, profile links, contact points, and metadata tags.

    Type Parameters

    Parameters

    • person_id: string
    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

  • Retrieve one PR publication profile with loaded people, contact points, evidence links, and tags.

    Type Parameters

    Parameters

    • publication_id: string
    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

  • Retrieve one imported story with feed, publication, and byline evidence.

    Type Parameters

    Parameters

    • story_id: string
    • Optional params: Record<string, any>

    Returns AxiosPromise<default<T>>

Generated using TypeDoc