MuleSoft to Intento API Connector
In this MuleSoft to Intento API Connector guide, you will learn how to:
Get the Connector
Use the Connector
Create Translate Operation
Get Operation By ID Operation
Testing
Get the Connector
At the moment, the easiest way to get the connector is to create an API asset in MuleSoft Design Center by uploading the Intento API OAS YAML
Use the Connector
The connector has two operations:
Create Translate
Get Operation by ID
This section demonstrates how to call them using MuleSoft HTTP Listener as a trigger.
To use any of the Intento API operations, provide a configuration for the Connector once it is added to the first Flow. After that, you can reuse the configuration:
Using DataWeave for Create Translate Operation, assume you constructed a flow:
As DataWeave detects both input and output formats, you can set fixed output parameters like provider and async in our example and connect dynamic ones, like to, from, and text:
Dynamic ones are shown as null in the preview since no data is available to display.
Using DataWeave for the Get Operation By ID request is redundant, but we can use it to transform the response:
The only parameter you have to set is the operation ID (in our example, from the HTTP Listener query parameter ID):
Testing
Once the application is deployed, you can trigger its flows:
Request a translation:
Get the result by ID: