lib/blade/translate.rb in blade-translate-0.1.5 vs lib/blade/translate.rb in blade-translate-0.1.6
- old
+ new
@@ -3,10 +3,10 @@
require "json"
require "rainbow/ext/string"
module Blade
- API_URL = "http://fanyi.youdao.com/openapi.do?keyfrom=JIANGDi&key=891853312&type=data&doctype=json&version=1.1&q="
+ API_URL = "http://fanyi.youdao.com/openapi.do?keyfrom=bladetrans&key=902909552&type=data&doctype=json&version=1.1&q="
class Translate
def initialize(input)
@words = input
query_for_hash
end