Files
github-api/index.html
2011-06-27 18:38:58 -07:00

116 lines
3.2 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>GitHub API for Java - </title>
<style type="text/css" media="all">
@import url("./css/maven-base.css");
@import url("./css/maven-theme.css");
@import url("./css/1024px.css");
@import url("./css/site.css");
</style>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<div id="wrap2"><div id="wrap">
<div id="header">
<p id="toplinks">Skip to: <a href="#content">Content</a> | <a href="#sidebar">Navigation</a> | <a href="#footer">Footer</a></p>
<h1 id="bannerLeft">
<a href="">
GitHub API for Java
</a>
</h1>
<p id="slogan">GitHub API for Java</p>
</div>
<div id="breadcrumbs">
<div class="xright"> </div>
<div class="clear">
<hr/>
</div>
</div>
<div id="sidebar">
<div id="navcolumn">
<h2>
Git Hub API for Java
</h2><ul>
<li class="none">
<strong>Introduction</strong>
</li>
<li class="none">
<a href="http://mvnrepository.com/artifact/org.kohsuke/github-api">Download</a>
</li>
<li class="none">
<a href="https://github.com/kohsuke/github-api">Source code</a>
</li>
</ul>
<h2>
References
</h2><ul>
<li class="none">
<a href="apidocs/index.html">Javadoc</a>
</li>
</ul>
</div>
</div>
<div id="content">
<div id="contentBox">
<div class="section"><h2>What is this?</h2>
<p>This library defines an object oriented representation of the GitHub API. The library doesn't yet cover the entirety of the GitHub API, but it's implemented with the right abstractions and libraries to make it very easy to improve the coverage.</p>
</div>
<div class="section"><h2>Sample Usage</h2>
<div class="source"><pre>GitHub github = GitHub.connect();
GHRepository repo = github.createRepository(
&quot;new-repository&quot;,&quot;this is my new repository&quot;,
&quot;http://www.kohsuke.org/&quot;,true/*public*/);
repo.addCollaborators(github.getUser(&quot;abayer&quot;),github.getUser(&quot;rtyler&quot;));
repo.delete();</pre>
</div>
</div>
<div class="section"><h2>Credential</h2>
<p>This library allows the caller to supply the credential as parameters, but it also defines a common convention so that applications using this library will look at the consistent location. In this convention, the library looks at &quot;~/.github&quot; property file, which should have the following two values:</p>
<div class="source"><pre>login=kohsuke
token=012345678</pre>
</div>
</div>
</div>
</div>
<div id="footer">
<div class="xright">&#169;
2011
<a href="http://kohsuke.org/">Kohsuke Kawaguchi</a> and other contributors
&nbsp;| Last Published: 06/27/2011
&nbsp;| Version: 1.9-SNAPSHOT
</div>
<div class="clear">
<hr/>
</div>
</div>
</div></div>
</body>
</html>