Closed
Description
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
Labels
No labels