Skip to main content
Module

x/kd_clients/mod.ts>UsersClient

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

Provides a client for interacting with users.

Constructors

new
UsersClient(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.