[英]Cloudinary list all images not implemented exception
I m trying to list all images from cloudinary using the below code but I get "Not implemented Exception" 我正在尝试使用以下代码列出cloudinary中的所有图像,但出现“未实现的异常”
Map config = ObjectUtils.asMap(
"cloud_name", Config.CLOUDINARY_CLOUD_NAME,
"api_key", Config.CLOUDINARY_API_KEY,
"api_secret", Config.CLOUDINARY_API_SECRET);
Cloudinary cloudinary = new Cloudinary(config);
Api api = cloudinary.api();
Map result;
try {
result = api.resources(ObjectUtils.emptyMap());
} catch (Exception e) {
e.printStackTrace();
}
Which seems to be coming from 哪个似乎来自
public ApiResponse callApi(HttpMethod method, Iterable<String> uri, Map<String, ? extends Object> params, Map options) throws Exception {
throw new Exception("not implemented");
}
// function parameter values
this = {ApiStrategy@4487}
api = {Api@4499}
shadow$_klass_ = {Class@4338} "class com.cloudinary.android.ApiStrategy"
shadow$_monitor_ = -2091658589
method = {Api$HttpMethod@4395} "GET"
name = {String@4396} "GET"
ordinal = 0
shadow$_klass_ = {Class@4382} "class com.cloudinary.Api$HttpMethod"
shadow$_monitor_ = -2098674761
uri = {ArrayList@4505} size = 2
0 = {String@4400} "resources"
1 = {String@4374} "image"
params = {HashMap@4516} size = 0
options = {Collections$EmptyMap@4371} size = 0
Since Android is a client-side environment and the Admin-API is designated to serve on the server-side, its methods are not implemented for native Android. 由于Android是客户端环境,并且Admin-API被指定为在服务器端提供服务,因此未为本机Android实现其方法。
Having said that, you can build the HTTP request on your own, using the ADMIN-API endpoint, and issue it in order to collect the information you require. 话虽如此,您可以使用ADMIN-API端点自行构建HTTP请求,然后发出该请求以收集所需的信息。 For more info regarding end points and constructing of the HTTP request, see Cloudinary's docs: http://cloudinary.com/documentation/admin_api
有关端点和HTTP请求的构造的更多信息,请参阅Cloudinary的文档: http ://cloudinary.com/documentation/admin_api
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.