curl --request POST \
--url https://api.dittowords.com/v2/textItems \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"projectId": "project-id",
"textItems": [
{
"text": "Hello world"
},
{
"developerId": "custom-dev-id",
"text": "Custom ID example",
"notes": "Shown on the welcome screen",
"characterLimit": 80
},
{
"text": "{{count}} items in your cart",
"variables": [
"count"
],
"plurals": [
{
"form": "one",
"text": "{{count}} item in your cart"
},
{
"form": "other",
"text": "{{count}} items in your cart"
}
]
},
{
"text": "Hello world",
"developerId": "localized-greeting",
"variants": [
{
"variantId": "french",
"text": "Bonjour le monde"
}
]
}
]
}
'