MCPcopy Index your code
hub / github.com/github-tools/github / listNotifications

Method listNotifications

lib/User.js:121–132  ·  view source on GitHub ↗

* List the user's notifications * @see https://developer.github.com/v3/activity/notifications/#list-your-notifications * @param {Object} [options={}] - any options to refine the search * @param {Requestable.callback} [cb] - will receive the list of repositories * @return {Promise} -

(options, cb)

Source from the content-addressed store, hash-verified

119 * @return {Promise} - the promise for the http request
120 */
121 listNotifications(options, cb) {
122 options = options || {};
123 if (typeof options === 'function') {
124 cb = options;
125 options = {};
126 }
127
128 options.since = this._dateToISO(options.since);
129 options.before = this._dateToISO(options.before);
130
131 return this._request('GET', this.__getScopedUrl('notifications'), options, cb);
132 }
133
134 /**
135 * Show the user's profile

Callers 2

auth.spec.jsFile · 0.80
user.spec.jsFile · 0.80

Calls 3

__getScopedUrlMethod · 0.95
_dateToISOMethod · 0.80
_requestMethod · 0.80

Tested by

no test coverage detected