Home Reference Source Test Repository
import GitHubConnector from 'hoist-connector-github/src/connector.js'
public class | source

GitHubConnector

Extends:

OAuth2ConnectorBase → GitHubConnector

A Hoist Connector for connecting to GitHub

Constructor Summary

Public Constructor
public

constructor(configuration: object)

create a new connector

Method Summary

Public Methods
public

delete(path: *): *

public

get(path: *): *

public

patch(path: *, body: *): *

public

post(path: *, body: *): *

Public Constructors

public constructor(configuration: object) source

create a new connector

Params:

NameTypeAttributeDescription
configuration object

the configuration properties to use

configuration.clientId string

the OAuth2 client id

configuration.clientSecret string

the OAuth2 client secret

configuration.scope string
  • optional
  • default: 'user,repo,admin:repo_hook,notifications'

a comma separated list of scopes to use https://developer.github.com/v3/oauth/#scopes

Public Methods

public delete(path: *): * source

Params:

NameTypeAttributeDescription
path *

Return:

*

public get(path: *): * source

Params:

NameTypeAttributeDescription
path *

Return:

*

public patch(path: *, body: *): * source

Params:

NameTypeAttributeDescription
path *
body *

Return:

*

public post(path: *, body: *): * source

Params:

NameTypeAttributeDescription
path *
body *

Return:

*