This repository has been archived by the owner on Jun 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
cmu.html
79 lines (68 loc) · 5.12 KB
/
cmu.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module cmu</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>cmu</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/Users/tom/workspace/cmupy/cmu.py">/Users/tom/workspace/cmupy/cmu.py</a></font></td></tr></table>
<p><tt>A library for ScottyLabs APIs<br>
<br>
Exported Classes:<br>
<a href="#Scheduling">Scheduling</a> -- A library for accessing ScottyLabs's API for CMU<br>
<a href="#Scheduling">Scheduling</a>.</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="datetime.html">datetime</a><br>
</td><td width="25%" valign=top><a href="itertools.html">itertools</a><br>
</td><td width="25%" valign=top><a href="requests.html">requests</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="cmu.html#Scheduling">Scheduling</a>
</font></dt></dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="Scheduling">class <strong>Scheduling</strong></a></font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>A library for accessing ScottyLabs's API for CMU <a href="#Scheduling">Scheduling</a>.<br>
<br>
Public functions:<br>
request -- Make a request to the scheduling API<br>
<br>
departments -- Get a list of all the departments for a given<br>
semester<br>
<br>
courses -- Get a list of all the courses under a given<br>
department for a given semester<br>
<br>
course -- Get information about a given course for a given<br>
semester<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Scheduling-__init__"><strong>__init__</strong></a>(self, app_id<font color="#909090">=None</font>, app_secret_key<font color="#909090">=None</font>)</dt></dl>
<dl><dt><a name="Scheduling-course"><strong>course</strong></a>(self, semester<font color="#909090">='S14'</font>, course_id<font color="#909090">=None</font>, department<font color="#909090">=None</font>, course_number<font color="#909090">=None</font>)</dt><dd><tt>Get information about a given course for a given semester</tt></dd></dl>
<dl><dt><a name="Scheduling-courses"><strong>courses</strong></a>(self, semester<font color="#909090">='S14'</font>, department<font color="#909090">=None</font>)</dt><dd><tt>Get a list of all the courses under a given department for<br>
a given semester</tt></dd></dl>
<dl><dt><a name="Scheduling-departments"><strong>departments</strong></a>(self, semester<font color="#909090">='S14'</font>)</dt><dd><tt>Get a list of all the departments for a given semester</tt></dd></dl>
<dl><dt><a name="Scheduling-request"><strong>request</strong></a>(self, uri, limit<font color="#909090">=None</font>, page<font color="#909090">=None</font>)</dt><dd><tt>Make a request to the scheduling API</tt></dd></dl>
</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="-current_semester"><strong>current_semester</strong></a>()</dt><dd><tt>Returns the most recent semester that the APIs will have data for</tt></dd></dl>
</td></tr></table>
</body></html>