- Source
Methods
(static) api_get(endpoint, data) → {Promise.<Object>}
do get request to url: API_URL + endpoint with request query of data
Parameters:
Name | Type | Description |
---|---|---|
endpoint | String | api endpoint |
data | Object | query params |
- Source
Returns:
json
- Type:
- Promise.<Object>
(static) done_prefix(task) → {String}
get the done prefix for a given task
Parameters:
Name | Type | Description |
---|---|---|
task | Object | the task object |
- Source
- See
- done_prefixes
- types
Returns:
text - the done prefix for the task
- Type:
- String
(static) path(path) → {String}
get the smart text associated with a given url
Parameters:
Name | Type | Description |
---|---|---|
path | String |
- Source
Returns:
text - the smart text associated with the url
- Type:
- String
(static) prefix(task) → {String}
get the prefix for a given task
Parameters:
Name | Type | Description |
---|---|---|
task | Object | the task object |
- Source
- See
- prefixes
- types
Returns:
text - the prefix for the task
- Type:
- String
(static) rated_api_get()
do api_get but abide by rate limit (only eval once every 15 seconds)
- Source
(static) type(text)
get the smart type associated with a given description
Parameters:
Name | Type | Description |
---|---|---|
text | String |
- Source
(static) type_full(short_type) → {String}
get the full type name from the short type
Parameters:
Name | Type | Description |
---|---|---|
short_type | String | the short type of the task |
- Source
- See
- types
Returns:
text - the full type name
- Type:
- String