зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1432659 - Expose Pocket API to get your pocket stream r=csadilek
MozReview-Commit-ID: B3mbvCaLQw7 --HG-- extra : rebase_source : 99e5b8ac5fcb9ec59497d978b2be52fe3aa4e69a
This commit is contained in:
Родитель
e8b62fa5df
Коммит
bade77fe89
|
@ -598,6 +598,20 @@ var pktApi = (function() {
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper function to get a user's pocket stories
|
||||
* @return {Boolean} Returns Boolean whether the api call started sucessfully
|
||||
*/
|
||||
function retrieve(data = {}, options = {}) {
|
||||
const requestData = Object.assign({}, data, {access_token: getAccessToken()});
|
||||
return apiRequest({
|
||||
path: "/get",
|
||||
data: requestData,
|
||||
success: options.success,
|
||||
error: options.error
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper function to get current signup AB group the user is in
|
||||
*/
|
||||
|
@ -644,5 +658,6 @@ var pktApi = (function() {
|
|||
getSuggestedTagsForItem,
|
||||
getSuggestedTagsForURL,
|
||||
getSignupPanelTabTestVariant,
|
||||
retrieve,
|
||||
};
|
||||
}());
|
||||
|
|
Загрузка…
Ссылка в новой задаче