We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26121e4 commit 5f4b524Copy full SHA for 5f4b524
lib/Github/Api/GraphQL.php
@@ -2,6 +2,7 @@
2
3
namespace Github\Api;
4
5
+use AcceptHeaderTrait;
6
/**
7
* GraphQL API.
8
*
@@ -12,13 +13,15 @@
12
13
*/
14
class GraphQL extends AbstractApi
15
{
16
+ use AcceptHeaderTrait;
17
18
* @param string $query
19
20
* @return array
21
22
public function execute($query)
23
24
+ $this->acceptHeader = 'application/vnd.github.v4+json';
25
$params = array(
26
'query' => $query
27
);
0 commit comments