Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #15 from pklaus/readme-navigation
Browse files Browse the repository at this point in the history
Readme navigation
  • Loading branch information
ornicar committed Jun 20, 2011
2 parents 856a330 + 8e255fe commit f4e5b5a
Showing 1 changed file with 40 additions and 3 deletions.
43 changes: 40 additions & 3 deletions README.markdown
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -45,7 +45,14 @@ Replace the `/path/to/lib/` path with the path you used for php-github-api insta


From this object, you can access to all GitHub apis, listed below. From this object, you can access to all GitHub apis, listed below.


<a name='nav'></a>
## Navigation

[Users][] | [Issues][] | [Commits][] | [Objects][] | [Repos][] | [Pull Requests][] | [Request any Route][] | [Authentication & Security][] | [Customize php-github-api][] | [Run Test Suite][]

<a name='users'></a>
## Users ## Users
<a href='#nav' alt='Back to the navigation'>Go back to the Navigation</a>


Searching users, getting user information and managing authenticated user account information. Searching users, getting user information and managing authenticated user account information.
Wrap [GitHub User API](http://develop.github.com/p/users.html). Wrap [GitHub User API](http://develop.github.com/p/users.html).
Expand Down Expand Up @@ -144,7 +151,9 @@ Returns an array of the authenticated user emails. Requires authentication.


Return an array of the authenticated user emails. Requires authentication. Return an array of the authenticated user emails. Requires authentication.


<a name='issues'></a>
## Issues ## Issues
<a href='#nav' alt='Back to the navigation'>Go back to the Navigation</a>


Listing issues, searching, editing and closing your projects issues. Listing issues, searching, editing and closing your projects issues.
Wrap [GitHub Issue API](http://develop.github.com/p/issues.html). Wrap [GitHub Issue API](http://develop.github.com/p/issues.html).
Expand Down Expand Up @@ -265,7 +274,9 @@ Returns an array of the issue labels.


Returns an array of issues matching the given label. Returns an array of issues matching the given label.


<a name='commits'></a>
## Commits ## Commits
<a href='#nav' alt='Back to the navigation'>Go back to the Navigation</a>


Getting information on specific commits, the diffs they introduce, the files they've changed. Getting information on specific commits, the diffs they introduce, the files they've changed.
Wrap [GitHub Commit API](http://develop.github.com/p/commits.html). Wrap [GitHub Commit API](http://develop.github.com/p/commits.html).
Expand Down Expand Up @@ -294,7 +305,9 @@ Returns an array of commits.


Returns a single commit. Returns a single commit.


<a name='objects'></a>
## Objects ## Objects
<a href='#nav' alt='Back to the navigation'>Go back to the Navigation</a>


Getting full versions of specific files and trees in your Git repositories. Wrap [GitHub objects API](http://develop.github.com/p/objects.html). Getting full versions of specific files and trees in your Git repositories. Wrap [GitHub objects API](http://develop.github.com/p/objects.html).


Expand Down Expand Up @@ -331,7 +344,9 @@ Returns array of blob informations.
The last parameter can be either a blob SHA1, a tree SHA1 or a commit SHA1. The last parameter can be either a blob SHA1, a tree SHA1 or a commit SHA1.
Returns the raw text content of the object. Returns the raw text content of the object.


<a name='repos'></a>
## Repos ## Repos
<a href='#nav' alt='Back to the navigation'>Go back to the Navigation</a>


Searching repositories, getting repository information and managing repository information for authenticated users. Searching repositories, getting repository information and managing repository information for authenticated users.
Wrap [GitHub Repo API](http://develop.github.com/p/repo.html). All methods are described on that page. Wrap [GitHub Repo API](http://develop.github.com/p/repo.html). All methods are described on that page.
Expand Down Expand Up @@ -547,7 +562,9 @@ To include non GitHub users, add a third parameter to true:






## Pull requests <a name='pull_requests'></a>
## Pull Requests
<a href='#nav' alt='Back to the navigation'>Go back to the Navigation</a>


Lets you list pull requests for a given repository, list one pull request in particular along with its discussion, and create a pull-request. Lets you list pull requests for a given repository, list one pull request in particular along with its discussion, and create a pull-request.
Wraps [GitHub Pull Request API](http://develop.github.com/p/pulls.html), still tagged **BETA**. All methods are described there. Wraps [GitHub Pull Request API](http://develop.github.com/p/pulls.html), still tagged **BETA**. All methods are described there.
Expand Down Expand Up @@ -616,7 +633,9 @@ Requires authentication. The issue ID is provided instead of title and body.
This returns the details of the pull request. This returns the details of the pull request.




## Request any route <a name='request_any_route'></a>
## Request any Route
<a href='#nav' alt='Back to the navigation'>Go back to the Navigation</a>


The method you need does not exist yet? The method you need does not exist yet?
You can access any GitHub route by using the "get" and "post" methods. You can access any GitHub route by using the "get" and "post" methods.
Expand All @@ -630,7 +649,9 @@ Returns an array describing the php-github-api repository.


See all GitHub API routes: [http://develop.github.com/](http://develop.github.com/) See all GitHub API routes: [http://develop.github.com/](http://develop.github.com/)


<a name='authentication_and_security'></a>
## Authentication & Security ## Authentication & Security
<a href='#nav' alt='Back to the navigation'>Go back to the Navigation</a>


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. 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.


Expand Down Expand Up @@ -665,7 +686,9 @@ If you want to stop new requests from being authenticated, you can use the deAut
$github->deAuthenticate(); $github->deAuthenticate();
``` ```


<a name='customize'></a>
## Customize php-github-api ## Customize php-github-api
<a href='#nav' alt='Back to the navigation'>Go back to the Navigation</a>


The library is highly configurable and extensible thanks to dependency injection. The library is highly configurable and extensible thanks to dependency injection.


Expand Down Expand Up @@ -724,7 +747,9 @@ For example, to replace the user API:
$github->setApi('user', new MyGithubApiUser($github)); $github->setApi('user', new MyGithubApiUser($github));
``` ```


## Run test suite <a name='run_test_suite'></a>
## Run Test Suite
<a href='#nav' alt='Back to the navigation'>Go back to the Navigation</a>


The code is unit tested. To run tests on your machine, from a CLI, run The code is unit tested. To run tests on your machine, from a CLI, run


Expand All @@ -742,3 +767,15 @@ This library borrows ideas, code and tests from [phptwitterbot](http://code.goog
- Thanks to [Nicolas Pastorino](http://github.com/jeanvoye) for his contribution on the Pull Request API. - Thanks to [Nicolas Pastorino](http://github.com/jeanvoye) for his contribution on the Pull Request API.


Thanks to GitHub for the high quality API and documentation. Thanks to GitHub for the high quality API and documentation.


[Users]: #users
[Issues]: #issues
[Commits]: #commits
[Objects]: #objects
[Repos]: #repos
[Pull Requests]: #pull_requests
[Request any Route]: #request_any_route
[Authentication & Security]: #authentication_and_security
[Customize php-github-api]: #customize
[Run Test Suite]: #run_test_suite

0 comments on commit f4e5b5a

Please sign in to comment.