Skip to content

Instantly share code, notes, and snippets.

View colinrymer's full-sized avatar

Colin Rymer colinrymer

View GitHub Profile
@colinrymer
colinrymer / github_client.ts
Created February 21, 2018 20:49
Example api client code
import * as Octokit from '@octokit/rest'
const client = new Octokit()
export default class GithubClient {
public static async authenticate({username, password, twoFactorCode}: any) {
client.authenticate({
type: 'basic',
username: username,