* 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)
| 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 |
no test coverage detected