Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/kd_clients/mod.ts>UsersClient

Various HTTP clients for miscellaneous use.
Latest
class UsersClient
extends GitHubClient
import { UsersClient } from "https://deno.land/x/kd_clients@v1.0.0-preview.14/mod.ts";

Provides a client for interacting with users.

Constructors

new
UsersClient(
ownerName: string,
repoName: string,
token?: string,
)

Initializes a new instance of the UsersClient class.

Methods

getUser(userName: string): Promise<UserModel>

Gets a user that matches the given userName.

userExists(userName: string): Promise<boolean>

Returns a value indicating whether or not a users exists with the given userName.