Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CodewarsV1Api

Class to interface with the codewars v1 public api.

Hierarchy

  • CodewarsV1Api

Index

Constructors

Properties

BASE_URL: "https://www.codewars.com/api/v1" = ...

The base URL for the API

Methods

  • _request<T>(url: string): Promise<T>
  • Returns the list of completed challenges for the given user.

    Parameters

    • user: string

      the username or userId

    • page: number = 0

      the page offset,

    Returns Promise<CompletedChallengeResponse>

    response object with number of pages, items and data.

  • getUser(user: string): Promise<User>
  • Return the user for the given username or userId

    Parameters

    • user: string

      the username or userId

    Returns Promise<User>

    the user

Generated using TypeDoc