- Create an account on https://marketplace.firefox.com/developers/ and accept the terms and conditions: https://marketplace.firefox.com/developers/terms
- Ask someone with admin rights to put your user in the LangPacks Administrators group.
- Generate an API key and secret from https://marketplace.firefox.com/developers/api
- Start using the API!
$ pip install curling
$ echo '{"marketplace.firefox.com": {"key": "<replace-by-your-api-key>", "secret": "<replace-by-your-api-secret>"}}' > ~/.curling
$ base64 -w 0 /tmp/langpack.zip
$ curling -X POST -d '{"upload": {"type": "application/zip", "name": "langpack.zip", "data": "<paste-result-from-previous-line-here>"}}' https://marketplacefirefox.com/api/v2/apps/validation/
$ curling https://marketplacefirefox.com/api/v2/apps/validation/<paste-validation-id-from-previous-line-here>/
Create a langpack from the validation result (once validation result says valid=true and processed=true)
$ curling -X POST -d '{"upload": "<paste-validation-id-from-previous-line-here>"}' https://marketplacefirefox.com/api/v2/langpacks/
Note: langpack uuid is different from the validation id, even though both are 32-chars hexadecimal strings.
$ curling -X PATCH -d '{"active": true}' https://marketplacefirefox.com/api/v2/langpacks/<paste-langpack-uuid-from-previous-line-here>/
$ curling https://marketplacefirefox.com/api/v2/langpacks/<paste-langpack-uuid-from-previous-line-here>/