UNPKG

pocketsmith

Version:

PocketSmith api wrapper for Node.

10 lines (7 loc) 283 B
import { PocketSmithInterface, UserInterface } from '../interfaces'; export default class Users { constructor(private context: PocketSmithInterface) {} get(id: number, callback?: Function): Promise<UserInterface> { return this.context.Client.get(`users/${id}`, callback); } }