|
|
@ -111,25 +111,4 @@ public class OpenimClient {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
|
|
|
String appkey = "24980715";
|
|
|
|
|
|
|
|
String secret = "60b1ba680a6f27ffc701f10b6d5be00e";
|
|
|
|
|
|
|
|
String url = "https://eco.taobao.com/router/rest";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
|
|
|
|
|
|
|
|
OpenimUsersGetRequest req = new OpenimUsersGetRequest();
|
|
|
|
|
|
|
|
// 批量为userid逗号分隔字符串
|
|
|
|
|
|
|
|
req.setUserids("kiraservant");
|
|
|
|
|
|
|
|
OpenimUsersGetResponse rsp = null;
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
rsp = client.execute(req);
|
|
|
|
|
|
|
|
} catch (ApiException e) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
JSONObject openInfo = JSONObject.parseObject(rsp.getBody());
|
|
|
|
|
|
|
|
System.out.println(openInfo.toJSONString());
|
|
|
|
|
|
|
|
System.out.println(openInfo.toJSONString());
|
|
|
|
|
|
|
|
System.out.println(openInfo.toJSONString());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|