-
-
Notifications
You must be signed in to change notification settings - Fork 598
Gists API #5
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
Gists API #5
Conversation
get single gist
*/ | ||
public function getGist($id) | ||
{ | ||
return $this->get('/gists/'.urlencode($id)); |
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.
Please remove first /
, as with it API will generate wrong url.
*/ | ||
public function update($id, $values) | ||
{ | ||
return $this->patch('gists/'.urlencode($id), $values); |
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.
This needs to be changed as $values
can be only in similar format to the create()
method.
After mentioned changes, please squash your commits, after that I will merge it. Thanks! |
added gist api to client gist create api create gist api refactor delete gist api gist api functional test for getList method gist api refactor: renamed delete method in remove method unit tests for gist api functional test for gist api: get by id comment fix for gist api fix gist api documentation added delete method to gist api readme update readme update pull request fixes list all public gists small refactor list starred gists small refactor doc fix create gist method refactor gist update method refactor readme updated small refactor readme update
Conflicts: README.markdown lib/Github/Api/Gist.php test/Github/Tests/Api/GistTest.php test/Github/Tests/Functional/GistTest.php
Hi. Any news? |
added basic gist api