Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.05 KB

File metadata and controls

32 lines (24 loc) · 1.05 KB

Langbly Examples

Code examples and migration guides for the Langbly translation API.

Examples

Example Language Description
curl cURL Basic API calls with curl
python-quickstart Python Getting started with the Python SDK
js-quickstart TypeScript Getting started with the JS/TS SDK
migrate-google Python + JS Migrate from Google Translate v2

Quick Start (cURL)

# Translate text
curl -X POST https://api.langbly.com/language/translate/v2 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q": "Hello world", "target": "nl"}'

# Response:
# {"data":{"translations":[{"translatedText":"Hallo wereld","detectedSourceLanguage":"en"}]}}

Links