88 lines
5.9 KiB
HTML
88 lines
5.9 KiB
HTML
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html><head><title>Python: module apiclient.discovery</title>
|
|
</head><body bgcolor="#f0f0f8">
|
|
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
|
<tr bgcolor="#7799ee">
|
|
<td valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="apiclient.html"><font color="#ffffff">apiclient</font></a>.discovery</strong></big></big></font></td
|
|
><td align=right valign=bottom
|
|
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/jcgregorio/projects/clean/apiclient/discovery.py">/home/jcgregorio/projects/clean/apiclient/discovery.py</a></font></td></tr></table>
|
|
<p><tt>Client for discovery based APIs<br>
|
|
<br>
|
|
A client library for Google's discovery based APIs.</tt></p>
|
|
<p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#aa55cc">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
|
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="copy.html">copy</a><br>
|
|
<a href="httplib2.html">httplib2</a><br>
|
|
<a href="logging.html">logging</a><br>
|
|
</td><td width="25%" valign=top><a href="apiclient.mimeparse.html">apiclient.mimeparse</a><br>
|
|
<a href="mimetypes.html">mimetypes</a><br>
|
|
<a href="os.html">os</a><br>
|
|
</td><td width="25%" valign=top><a href="random.html">random</a><br>
|
|
<a href="re.html">re</a><br>
|
|
<a href="json.html">json</a><br>
|
|
</td><td width="25%" valign=top><a href="uritemplate.html">uritemplate</a><br>
|
|
<a href="urllib.html">urllib</a><br>
|
|
<a href="urlparse.html">urlparse</a><br>
|
|
</td></tr></table></td></tr></table><p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#eeaa77">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl><dt><a name="-build"><strong>build</strong></a>(serviceName, version, http<font color="#909090">=None</font>, discoveryServiceUrl<font color="#909090">='https://www.googleapis.com/discovery/v1/apis/{api}/{apiVersion}/rest'</font>, developerKey<font color="#909090">=None</font>, model<font color="#909090">=None</font>, requestBuilder<font color="#909090">=<class 'apiclient.http.HttpRequest'></font>)</dt><dd><tt>Construct a Resource for interacting with an API.<br>
|
|
<br>
|
|
Construct a Resource object for interacting with an API. The serviceName and<br>
|
|
version are the names from the Discovery service.<br>
|
|
<br>
|
|
Args:<br>
|
|
serviceName: string, name of the service.<br>
|
|
version: string, the version of the service.<br>
|
|
http: httplib2.Http, An instance of httplib2.Http or something that acts<br>
|
|
like it that HTTP requests will be made through.<br>
|
|
discoveryServiceUrl: string, a URI Template that points to the location of<br>
|
|
the discovery service. It should have two parameters {api} and<br>
|
|
{apiVersion} that when filled in produce an absolute URI to the discovery<br>
|
|
document for that service.<br>
|
|
developerKey: string, key obtained from<br>
|
|
https://code.google.com/apis/console.<br>
|
|
model: apiclient.Model, converts to and from the wire format.<br>
|
|
requestBuilder: apiclient.http.HttpRequest, encapsulator for an HTTP<br>
|
|
request.<br>
|
|
<br>
|
|
Returns:<br>
|
|
A Resource object with methods for interacting with the service.</tt></dd></dl>
|
|
<dl><dt><a name="-key2param"><strong>key2param</strong></a>(key)</dt><dd><tt>Converts key names into parameter names.<br>
|
|
<br>
|
|
For example, converting "max-results" -> "max_results"<br>
|
|
<br>
|
|
Args:<br>
|
|
key: string, the method key name.<br>
|
|
<br>
|
|
Returns:<br>
|
|
A safe method name based on the key name.</tt></dd></dl>
|
|
</td></tr></table><p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#55aa55">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
|
<td width="100%"><strong>__all__</strong> = ['build', 'build_from_documentfix_method_name', 'key2param']<br>
|
|
<strong>__author__</strong> = 'jcgregorio@google.com (Joe Gregorio)'</td></tr></table><p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#7799ee">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
|
|
<td width="100%">jcgregorio@google.com (Joe Gregorio)</td></tr></table>
|
|
</body></html> |