入参名称 | 数据类型 | 是否必须 | 缺省默认值 | 入参示例 | 入参描述 |
---|
暂无数据 |
出参名称 | 数据类型 | 出参描述 |
---|
暂无数据 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
// https://github.com/aliyun/iotx-api-gateway-client public static void main(String[] args) throws UnsupportedEncodingException { IoTApiClientBuilderParams ioTApiClientBuilderParams = new IoTApiClientBuilderParams(); ioTApiClientBuilderParams.setAppKey("你的<AppKey>"); ioTApiClientBuilderParams.setAppSecret("你的<AppSecret>"); SyncApiClient syncClient = new SyncApiClient(ioTApiClientBuilderParams); IoTApiRequest request = new IoTApiRequest(); //设置api的版本 request.setApiVer("undefined"); request.setId("42423423"); //如果需要登陆,设置当前的会话的token request.setIotToken("xxxxxxxxxxxxxxx"); undefined //请求参数域名、path、request ApiResponse response = syncClient.postBody("api.link.aliyun.com", "", request, true); System.out.println( "response code = " + response.getCode() + " response = " + new String(response.getBody(), "UTF-8")); }
1
1
错误码 | 错误信息 | 错误描述 |
---|
暂无数据 |