Methods
authorize(credentials, callback)
Create an OAuth2 client with the given credentials, and then execute the given callback function.
Parameters:
Name | Type | Description |
---|---|---|
credentials |
Object | The authorization client credentials. |
callback |
function | The callback to call with the authorized client. |
- Source:
current_term()
return a hashmap, eg. { "year": "2021", term: "fall"}
Note strings, lowercase.
- Source:
getNewToken(oAuth2Client, callback)
Get and store new token after prompting for user authorization, and then execute the given callback with the authorized OAuth2 client.
Parameters:
Name | Type | Description |
---|---|---|
oAuth2Client |
google.auth.OAuth2 | The OAuth2 client to get token for. |
callback |
getEventsCallback | The callback for the authorized client. |
- Source:
increment_year()
given a value of value_type, increment year by given incr value_type should be: yyyy, date (mm/dd/yyyy), or term (yyyy/[1,6,9])
- Source:
increment_year()
given a value of value_type, increment year by given incr value_type should be: yyyy, date (mm/dd/yyyy), or term (yyyy/[1,6,9])
- Source:
isUndefinedOrIsNullParentAndChild()
returns true if parent, or parent[child], is undefined or null
- Source:
listMajors(auth)
Prints the names and majors of students in a sample spreadsheet:
Parameters:
Name | Type | Description |
---|---|---|
auth |
google.auth.OAuth2 | The authenticated Google OAuth client. |