How to use AMO's API to push an update

A folk at https://github.com/mozilla/addons/issues/1446 tried to help by referring to https://github.com/mozilla/web-ext/blob/master/src/util/submit-addon.js, but I couldn't get it to work despite copying the lines of putVersion Any idea what is missing?
GitHub
Provide Node.js code examples for updating a WebExtension · Issue #...
Describe the problem and steps to reproduce it: I tried to follow this blog post and follow the linked documentation, but I'm struggling to understand how the different endpoints work toget...
5 Replies
lab
lab•3y ago
Prob the baseUrL?
Avi
AviOP•3y ago
To my understanding, I'm supposed to get out of POST /upload (https://github.com/mozilla/web-ext/blob/e975ab9ab29d3f47832c43d61b21153cec19a85b/src/util/submit-addon.js#L117-L124) a uuid, which is probably used somewhere in order to link the upload with the new release or stuff like that
GitHub
web-ext/submit-addon.js at e975ab9ab29d3f47832c43d61b21153cec19a85b...
A command line tool to help build, run, and test web extensions - web-ext/submit-addon.js at e975ab9ab29d3f47832c43d61b21153cec19a85b · mozilla/web-ext
Avi
AviOP•3y ago
I eventually figured it out, but now I'm running into a server throttle issue https://github.com/mozilla/addons/issues/1453
GitHub
"Request was throttled" · Issue #1453 · mozilla/addons
Describe the problem and steps to reproduce it: I'm trying to make a reliable Node.js code that calls endpoints, but after many code testing, I'm getting an error of Request was thr...
lab
lab•3y ago
niceee
Avi
AviOP•3y ago
GitHub
mozilla-addons-api/index.ts at ea32dfa519e75f7215c30685eaa723eac494...
Mozilla Addons API. Contribute to PlasmoHQ/mozilla-addons-api development by creating an account on GitHub.
Want results from more Discord servers?
Add your server