Skip to content

Authentication of token and method with enterprise GitHub account #1015

Closed
@bkuppala95

Description

@bkuppala95

How to authenticate token and method with enterprise GitHub account.

public function sendGit() {
$username = $this->token;
$method = Github\Client::AUTH_ACCESS_TOKEN;
$client = new \Github\Client(nill, nill, 'https://github.organization.com/' );
$client->authenticate($username, $method);
$client->api('issue')->create($this->owner, $this->repo, ['title' => 'SlackBot Issue ', 'body' => $this->getIssue()]);
$this->say('The issue is created');

I have implemented code this way but is unable to connect with my organization GitHub.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions