Closed Bug 1432659 Opened 7 years ago Closed 7 years ago

Expose Pocket API to get your pocket stream

Categories

(Firefox :: New Tab Page, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 60
Iteration:
60.2 - Feb 12
Tracking Status
firefox60 --- fixed

People

(Reporter: Mardak, Assigned: ursula)

References

(Blocks 1 open bug)

Details

(Whiteboard: [AS60MVP])

Attachments

(1 file)

No description provided.
Blocks: 1425496
Whiteboard: [AS60MVP]
Assignee: nobody → usarracini
Comment on attachment 8946408 [details] Bug 1432659 - Expose Pocket API to get your pocket stream https://reviewboard.mozilla.org/r/216358/#review222146 Static analysis found 1 defect in this patch. - 1 defect found by mozlint You can run this analysis locally with: - `./mach lint check path/to/file` (Python/Javascript/wpt) If you see a problem in this automated review, please report it here: http://bit.ly/2y9N9Vx ::: browser/extensions/pocket/content/pktApi.jsm:606 (Diff revision 2) > /** > + * Helper function to get a user's pocket stories > + * @return {Boolean} Returns Boolean whether the api call started sucessfully > + */ > + function retrieve(data = {}, options = {}) { > + const data = Object.assign({}, data, {access_token: getAccessToken()}); Error: Parsing error: Identifier 'data' has already been declared [eslint: None]
Comment on attachment 8946408 [details] Bug 1432659 - Expose Pocket API to get your pocket stream https://reviewboard.mozilla.org/r/216358/#review222150 Looks good to me!
Attachment #8946408 - Flags: review?(csadilek) → review+
Comment on attachment 8946408 [details] Bug 1432659 - Expose Pocket API to get your pocket stream https://reviewboard.mozilla.org/r/216358/#review222158 Static analysis found 1 defect in this patch. - 1 defect found by mozlint You can run this analysis locally with: - `./mach lint check path/to/file` (Python/Javascript/wpt) If you see a problem in this automated review, please report it here: http://bit.ly/2y9N9Vx ::: browser/extensions/pocket/content/pktApi.jsm:606 (Diff revision 3) > /** > + * Helper function to get a user's pocket stories > + * @return {Boolean} Returns Boolean whether the api call started sucessfully > + */ > + function retrieve(data = {}, options = {}) { > + const data = Object.assign({}, data, {access_token: getAccessToken()}); Error: Parsing error: Identifier 'data' has already been declared [eslint: None]
Pushed by usarracini@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/15f2562f1ba0 Expose Pocket API to get your pocket stream r=csadilek
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 60
Component: Activity Streams: Newtab → New Tab Page
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: