-
-
Notifications
You must be signed in to change notification settings - Fork 599
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
Closed
GraphQL API #509
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
aad9546
Create Traffic.php
m1guelpf f05e626
Add Clones
m1guelpf a229d8a
Apply fixes from StyleCI
m1guelpf 350b828
Add Traffic to Repo
m1guelpf d6767ea
Add Traffic
m1guelpf ded9d04
Apply fixes from StyleCI
m1guelpf f4cfcb4
Add owned()
m1guelpf adcd5a8
Apply fixes from StyleCI
m1guelpf 8264b32
list() -> referers()
m1guelpf ec15450
Add params
m1guelpf 60ac5de
Finish adding params
m1guelpf f0efa76
Add tests for repos-owned
m1guelpf b06d0ba
Fix tests
m1guelpf 8027309
Syntax
m1guelpf bf17eab
Test skeleton
m1guelpf 73f9828
Apply fixes from StyleCI
m1guelpf fe3ef14
Merge pull request #4 from m1guelpf/add-traffic
m1guelpf beb5984
Merge pull request #5 from m1guelpf/patch-1
m1guelpf f413e41
Merge pull request #6 from m1guelpf/repos-owned
m1guelpf 678b830
Update composer.json
m1guelpf 2842b78
Add replace
m1guelpf a7c3573
Syntax
m1guelpf 2cb67e7
Add GraphQL API
m1guelpf 89d3f3e
Apply fixes from StyleCI
m1guelpf 623b3e6
Merge pull request #8 from KnpLabs/master
m1guelpf 20c1c09
Merge pull request #7 from m1guelpf/graphql
m1guelpf 44ec311
Create GraphQL.php
m1guelpf f0279c9
Update composer.json
m1guelpf f8f0e49
Update composer.json
m1guelpf e2bf2a1
Add GraphQL API
m1guelpf 35a0d47
Fix return
m1guelpf 722c5af
Merge branch 'packagist' into graphql
m1guelpf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
*/ | ||
public function graphql($query) | ||
{ | ||
$params = array( | ||
'query' => $query | ||
); | ||
|
||
return $this->post('/graphql', $params); | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it?