observation-js Documentation - v1.16.0
    Preparing search index...

    Class BioBlitzes

    Index

    Constructors

    Methods

    • Fetches a list of relevant BioBlitzes for the user.

      Contains BioBlitzes the user has liked and/or contributed to. When coordinates are supplied, it also contains BioBlitzes at or close to that position. Authentication is not required, but an authenticated request personalizes the user field on each BioBlitz.

      Parameters

      Returns Promise<Paginated<BioBlitz>>

      A promise that resolves to a paginated list of BioBlitz objects.

      If the request fails.

    • Lists the BioBlitzes an observation contributes to.

      Parameters

      • observationId: number

        The unique identifier for the observation.

      Returns Promise<Paginated<BioBlitz>>

      A promise that resolves to a paginated list of BioBlitz objects.

      If the request is not authenticated.

      If the request fails.

    • Fetches the details of a single BioBlitz by its id.

      Authentication is not required. If the request is unauthenticated, the user field will be null.

      Parameters

      • id: number

        The unique identifier for the BioBlitz.

      Returns Promise<BioBlitz>

      A promise that resolves to the BioBlitz object.

      If the request fails.

    • Likes a BioBlitz for the authenticated user.

      Parameters

      • id: number

        The unique identifier for the BioBlitz.

      Returns Promise<void>

      A promise that resolves once the BioBlitz is liked (HTTP 204).

      If the request is not authenticated.

      If the request fails.

    • Unlikes a BioBlitz for the authenticated user.

      Parameters

      • id: number

        The unique identifier for the BioBlitz.

      Returns Promise<void>

      A promise that resolves once the BioBlitz is unliked (HTTP 204).

      If the request is not authenticated.

      If the request fails.

    • Fetches summary statistics for a BioBlitz category.

      Authentication is not required.

      Parameters

      • categoryId: number

        The unique identifier for the BioBlitz category.

      Returns Promise<BioBlitzCategoryStatistics>

      A promise that resolves to the category statistics.

      If the request fails.