You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<ahref='#nav'alt='Back to the navigation'>Go back to the Navigation</a>
298
311
299
312
Getting full versions of specific files and trees in your Git repositories. Wrap [GitHub objects API](http://develop.github.com/p/objects.html).
300
313
@@ -331,7 +344,9 @@ Returns array of blob informations.
331
344
The last parameter can be either a blob SHA1, a tree SHA1 or a commit SHA1.
332
345
Returns the raw text content of the object.
333
346
347
+
<aname='repos'></a>
334
348
## Repos
349
+
<ahref='#nav'alt='Back to the navigation'>Go back to the Navigation</a>
335
350
336
351
Searching repositories, getting repository information and managing repository information for authenticated users.
337
352
Wrap [GitHub Repo API](http://develop.github.com/p/repo.html). All methods are described on that page.
@@ -547,7 +562,9 @@ To include non GitHub users, add a third parameter to true:
547
562
548
563
549
564
550
-
## Pull requests
565
+
<aname='pull_requests'></a>
566
+
## Pull Requests
567
+
<ahref='#nav'alt='Back to the navigation'>Go back to the Navigation</a>
551
568
552
569
Lets you list pull requests for a given repository, list one pull request in particular along with its discussion, and create a pull-request.
553
570
Wraps [GitHub Pull Request API](http://develop.github.com/p/pulls.html), still tagged **BETA**. All methods are described there.
@@ -616,7 +633,9 @@ Requires authentication. The issue ID is provided instead of title and body.
616
633
This returns the details of the pull request.
617
634
618
635
619
-
## Request any route
636
+
<aname='request_any_route'></a>
637
+
## Request any Route
638
+
<ahref='#nav'alt='Back to the navigation'>Go back to the Navigation</a>
620
639
621
640
The method you need does not exist yet?
622
641
You can access any GitHub route by using the "get" and "post" methods.
@@ -630,7 +649,9 @@ Returns an array describing the php-github-api repository.
630
649
631
650
See all GitHub API routes: [http://develop.github.com/](http://develop.github.com/)
632
651
652
+
<aname='authentication_and_security'></a>
633
653
## Authentication & Security
654
+
<ahref='#nav'alt='Back to the navigation'>Go back to the Navigation</a>
634
655
635
656
Most GitHub services do not require authentication, but some do. For example the methods that allow you to change properties on Repositories and some others. Therefore this step is facultative.
636
657
@@ -665,7 +686,9 @@ If you want to stop new requests from being authenticated, you can use the deAut
665
686
$github->deAuthenticate();
666
687
```
667
688
689
+
<aname='customize'></a>
668
690
## Customize php-github-api
691
+
<ahref='#nav'alt='Back to the navigation'>Go back to the Navigation</a>
669
692
670
693
The library is highly configurable and extensible thanks to dependency injection.
671
694
@@ -724,7 +747,9 @@ For example, to replace the user API:
724
747
$github->setApi('user', new MyGithubApiUser($github));
725
748
```
726
749
727
-
## Run test suite
750
+
<aname='run_test_suite'></a>
751
+
## Run Test Suite
752
+
<ahref='#nav'alt='Back to the navigation'>Go back to the Navigation</a>
728
753
729
754
The code is unit tested. To run tests on your machine, from a CLI, run
730
755
@@ -742,3 +767,15 @@ This library borrows ideas, code and tests from [phptwitterbot](http://code.goog
742
767
- Thanks to [Nicolas Pastorino](http://github.com/jeanvoye) for his contribution on the Pull Request API.
743
768
744
769
Thanks to GitHub for the high quality API and documentation.
0 commit comments