Learn R Programming

RYoudaoTranslate (version 1.0)

youdaoUrl: Return a url to get qurey result from Youdao.

Description

Youdao open API key and keyfrom should be provided.

Usage

youdaoUrl(word, api, keyfrom)

Arguments

word
The word you want to look up.
api
A Youdao API key. You can get it from http://fanyi.youdao.com/openapi.
keyfrom
A Youdao keyfrom. You can get it from http://fanyi.youdao.com/openapi.

Value

Return a url link.

Details

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 "+".

References

http://fanyi.youdao.com/openapi?path=data-mode http://www.youdao.com/help/fanyiapi/privacy/

Examples

Run this code
	apikey = "498375134"
	keyfrom = "JustForTestYouDao"
	Url = youdaoUrl(word="youdao",api=apikey,keyfrom=keyfrom)

Run the code above in your browser using DataLab