// Path: src/translation/baidu/BaiDuTranslateApiConfig.java
// public static final String APP_ID = "";
// 
// Path: src/translation/baidu/BaiDuTranslateApiConfig.java
// public static final String SECURITY_KEY = "";


import static translation.baidu.BaiDuTranslateApiConfig.SECURITY_KEY;
import static translation.baidu.BaiDuTranslateApiConfig.APP_ID;
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package translation.baidu;


/**
 *
 * @author swtf
 */
public class BaiDuTranslate {
    public static String translate(String query,String to){
// Path: src/translation/baidu/BaiDuTranslateApiConfig.java
// public static final String APP_ID = "";
// 
// Path: src/translation/baidu/BaiDuTranslateApiConfig.java
// public static final String SECURITY_KEY = "";


// Path: src/translation/baidu/BaiDuTranslate.java
import static translation.baidu.BaiDuTranslateApiConfig.SECURITY_KEY;
import static translation.baidu.BaiDuTranslateApiConfig.APP_ID;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package translation.baidu;


/**
 *
 * @author swtf
 */
public class BaiDuTranslate {
    public static String translate(String query,String to){
        BaiDuTranslateApi api = new BaiDuTranslateApi(APP_ID, SECURITY_KEY);