/submit : (submit a translation)
This web service API call stores newly submitted translations to the datastore.
It expects the following parameters:
- sl - source language (ISO language code), required
- tl - target language (ISO language code), required
- st - source text (UTF-8 encoded), required
- tt - translated text (UTF-8 encoded), required
- domain - site domain or API key, optional but recommended (submit in nnn.com format)
- url - parent URL of source document, optional but recommended (submit full permalink)
- username - WWL or remote username, optional (system allows anonymous translations)
- facebookid - optional facebook id
- profile_url - optional profile url
- pw - WWL or remote user password
- proxy - if submission is being submitted via a proxy gateway, default = n if omitted
(in proxy mode, we use you are filtering submissions upstream and will accept
whatever username you provide)
- session - session key (cookie, stored whenever user logs into system)
- apikey - API key (for trusted submitters and LSPs)
- ip - user IP address (if proxy=y, include this field to provide the user's IP address
The API call returns a text/plain object, with either an ok response or an error message.
IMPORTANT: always use UTF-8 encoding when submitting data. If you are generating an HTML
form that points back to the WWL server, be sure to include accept-charset=utf-8 in the