Youdao open API key and keyfrom should be provided.
youdaoUrl(word, api, keyfrom)
The word you want to look up.
A Youdao API key. You can get it from http://fanyi.youdao.com/openapi.
A Youdao keyfrom. You can get it from http://fanyi.youdao.com/openapi.
All of three arguments are needed. The API key and keyfrom could be get from http://fanyi.youdao.com/openapi?path=data-mode. If the vocabulary is consist of two words, the space between two words will be converted to a "+".
Return a url link.
1 2 3
apikey = "498375134" keyfrom = "JustForTestYouDao" Url = youdaoUrl(word="youdao",api=apikey,keyfrom=keyfrom)
Loading required package: RCurl Loading required package: bitops Loading required package: rjson
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.