Skip to content

GraphQL API #509

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 32 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
aad9546
Create Traffic.php
m1guelpf Jan 10, 2017
f05e626
Add Clones
m1guelpf Jan 10, 2017
a229d8a
Apply fixes from StyleCI
m1guelpf Jan 10, 2017
350b828
Add Traffic to Repo
m1guelpf Jan 11, 2017
d6767ea
Add Traffic
m1guelpf Jan 11, 2017
ded9d04
Apply fixes from StyleCI
m1guelpf Jan 11, 2017
f4cfcb4
Add owned()
m1guelpf Jan 11, 2017
adcd5a8
Apply fixes from StyleCI
m1guelpf Jan 11, 2017
8264b32
list() -> referers()
m1guelpf Jan 11, 2017
ec15450
Add params
m1guelpf Jan 12, 2017
60ac5de
Finish adding params
m1guelpf Jan 12, 2017
f0efa76
Add tests for repos-owned
m1guelpf Jan 12, 2017
b06d0ba
Fix tests
m1guelpf Jan 12, 2017
8027309
Syntax
m1guelpf Jan 12, 2017
bf17eab
Test skeleton
m1guelpf Jan 12, 2017
73f9828
Apply fixes from StyleCI
m1guelpf Jan 12, 2017
fe3ef14
Merge pull request #4 from m1guelpf/add-traffic
m1guelpf Jan 14, 2017
beb5984
Merge pull request #5 from m1guelpf/patch-1
m1guelpf Jan 14, 2017
f413e41
Merge pull request #6 from m1guelpf/repos-owned
m1guelpf Jan 14, 2017
678b830
Update composer.json
m1guelpf Jan 14, 2017
2842b78
Add replace
m1guelpf Jan 14, 2017
a7c3573
Syntax
m1guelpf Jan 14, 2017
2cb67e7
Add GraphQL API
m1guelpf Jan 23, 2017
89d3f3e
Apply fixes from StyleCI
m1guelpf Jan 23, 2017
623b3e6
Merge pull request #8 from KnpLabs/master
m1guelpf Jan 23, 2017
20c1c09
Merge pull request #7 from m1guelpf/graphql
m1guelpf Jan 23, 2017
44ec311
Create GraphQL.php
m1guelpf Jan 23, 2017
f0279c9
Update composer.json
m1guelpf Jan 23, 2017
f8f0e49
Update composer.json
m1guelpf Jan 23, 2017
e2bf2a1
Add GraphQL API
m1guelpf Jan 23, 2017
35a0d47
Fix return
m1guelpf Jan 23, 2017
722c5af
Merge branch 'packagist' into graphql
m1guelpf Jan 23, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions lib/Github/Api/GraphQL.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

namespace Github\Api;

/**
* GraphQL API.
*
* @link http://developer.github.com/v3/markdown/
* @author Miguel Piedrafita <[email protected]>
*/
class GraphQL extends AbstractApi
{
/**
* @param string $query
*
* @return string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it?

*/
public function graphql($query)
{
$params = array(
'query' => $query
);

return $this->post('/graphql', $params);
}
}