public class BaseAPI extends Object
| 构造器和说明 |
|---|
BaseAPI() |
protected String URL
protected String secretId
protected String secretKey
public String makeURL(String method, String action, String region, Map<String,String> args, String charset) throws InvalidKeyException, NoSuchAlgorithmException, UnsupportedEncodingException
method - http请求方法 GET | POSTaction - 接口名称region - 实例所在区域 sz | gz ...args - 请求参数charset - 字符编码InvalidKeyException - 抛出异常NoSuchAlgorithmException - 抛出异常UnsupportedEncodingException - 抛出异常Copyright © 2018. All rights reserved.