Skip to content

Commit 25ea264

Browse files
m1guelpfNyholm
authored andcommitted
Add Integrations::configure (#581)
* Add configure() * cs fixes * Hardcode header * cs fixes * Docblock fix
1 parent a21beb3 commit 25ea264

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

lib/Github/Api/Integrations.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,30 @@
22

33
namespace Github\Api;
44

5+
use Github\Api\AcceptHeaderTrait;
6+
57
/**
68
* @link https://developer.github.com/v3/integrations/
79
* @author Nils Adermann <naderman@naderman.de>
810
*/
911
class Integrations extends AbstractApi
1012
{
13+
use AcceptHeaderTrait;
14+
15+
/**
16+
* Configure the accept header for Early Access to the integrations api
17+
*
18+
* @see https://developer.github.com/v3/integrations/
19+
*
20+
* @return self
21+
*/
22+
public function configure()
23+
{
24+
$this->acceptHeaderValue = 'application/vnd.github.machine-man-preview+json';
25+
26+
return $this;
27+
}
28+
1129
/**
1230
* Create an access token for an installation
1331
*

0 commit comments

Comments
 (0)