Class: module:gitcore

module:gitcore

new module:gitcore(username, password)

Initialize the gitcore module with optional username and password to be used for for API calls.
Parameters:
Name Type Description
username string optional username to pass to API requests
password string optional password to pass to API requests
Source:

Methods

(inner) apiRequest(onFulfilled, onRejected, username, password, target, marshall)

Perform an API request to the specified target URL using the optional username and password. Upon success, pass the result of the request to the specified marshall function and pass the marshalled result to onFulfilled callback. If any errors occur, onRejected will be called instead with a informative error object
Parameters:
Name Type Description
onFulfilled function API response will be passed to this callback
onRejected function errors will be passed to this callback
username string optional username to pass to request
password string optional password to pass to request
target string target URL of API call
marshall function a function to marshall the result of the API call into a consumable object
Source:

(inner) setupCache()

(Re)initialize the cache of API call results.
Source:

(inner) teardownCache()

Free the cache of API call results.
Source: