HTTP Request
MotaWord Active ecosystem comes with all kinds of integration methods. Depending on your use case, you may opt for a browser-only integration or a full backend integration. The biggest advantage of backend integrations is full SEO compatibility.
"HTTP Request" method can help you translate any URL right on the fly before going for a deeper integration by giving your URL to our Active Serve product.
It's a simple request to Serve, appended with the URL you want to translate: https://serve.motaword.com/https://www.example.com?locale=tr
A full request looks like this:
GET /https://www.example.com?locale=fr HTTP/1.1
Host: serve.motaword.com
X-MotaWord-Token: {token}
X-MotaWord-ActiveProject-Id: {projectId}
X-MotaWord-Widget-Id: {widgetId}
We recommend URL-encoding the website URL you want to translate; encoded usage looks like this:
GET /https%3A%2F%2Fwww.example.com%3Flocale%3Dfr HTTP/1.1
Host: serve.motaword.com
X-MotaWord-Token: {token}
X-MotaWord-ActiveProject-Id: {projectId}
X-MotaWord-Widget-Id: {widgetId}
And that's really it. Active Serve will return translated version of the webpage you have provided.
This integration method enables many interesting use cases; for instance, one of our airport customers has been using this method to seamlessly translate their arbitrary HTML content inside their mobile app. – discuss with us for the best way to integrate with Active Serve.
Updated 7 months ago