On our project, we are using Transifex API and recently did a migration from Transifex v2 to Transifex v3. The main change in Transifex downloading API in v3 is that the download action became asynchronous (whereas in APIv2 this was done synchronously). In V2 it was possible to download a resource file with just one single request from the Transifex endpoint.
In V3 it is required to have at least 3 requests with the implementation of a polling mechanism to check the “download” status. The final URL is received in “Location” header from 303 response:
Documentation - link
In case the upload job has been successful, you will receive a "303 - See Other" response and you can follow its Location to download the file that have been extracted from your file.
In our project in order to enable translations downloading during Continue Integration (CI) phase we need to whitelist the domains for requests. In v2 it was possible to whitelist the transifex domain. But in v3 the final URL is received from redirect URL so it can change dynamically.
Currently translations are downloaded from https://storage.svc.transifex.net.. Could you please advise on the following questions:
- Is this endpoint stable for translations source, so we can whitelist it to enable translations downloading?
- If this endpoint is dynamic: is there any pattern for translations source endpoint? For example, we can check if the endpoint URL includes the “transifex.net” substring.
Thanks for the support,