Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 588 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 588 Bytes

English to Chinese Translation APIs Wrapper in Ruby.

Code Climate

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!