Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/kd_clients/GitHubClients/UsersClient.ts>UsersClient

Various 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.12/GitHubClients/UsersClient.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.