English to Chinese Translation APIs Wrapper in Ruby.
Register API strategy
FanyiAPI::API.register("youdao", key: "key", keyfrom: "keyfrom")
FanyiAPI::API.register("iciba", key: "key")
Request API
# default is youdao API
FanyiAPI::API.("hello")
# or specify explicitly
FanyiAPI::API.("youdao", "hello")
FanyiAPI::API.("iciba", "hello")
TODO
- parse result
and more ...
Contributions
Fork, please!