Adapter that, given a URL, looks up metadata that can identify a review subject, such as a book's title or a restaurant name.

Hierarchy (View Summary)

Constructors

Properties

sourceID?: string

Canonical identifier for this source. Lower-case string, no whitespace.

supportedPattern?: RegExp

RegExp for URLs this adapter can handle.

updateCallback: Function | UpdateCallback

Callback to run after a successful lookup

Methods

  • Does this adapter support the given URL? By default, performs a simple regex check.

    Parameters

    • url: string

      the URL to test

    Returns boolean

    true if supported