Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OsuCollectorNode

Hierarchy

  • OsuCollectorNode

Index

Constructors

Properties

cookie?: string

Methods

  • getUserMe<K>(options?: GetMeOptions): Promise<null | MeRoute[K]>
  • Get current cookie's user

    function

    getUserMe

    Type parameters

    • K: keyof MeRoute

    Parameters

    • Optional options: GetMeOptions

      Options for different type of data to be fetched

    Returns Promise<null | MeRoute[K]>

    Current logged in user data

  • request(method: Method, path: Routes, options?: { cookie?: string; data?: Record<string, string> }): Promise<AxiosResponse<Record<string, any>, any>>
  • Use axios to make request

    Parameters

    • method: Method

      HTTP method

    • path: Routes

      Path

    • options: { cookie?: string; data?: Record<string, string> } = {}

      Data to be sent

      • Optional cookie?: string
      • Optional data?: Record<string, string>

    Returns Promise<AxiosResponse<Record<string, any>, any>>

    Axios response

Generated using TypeDoc