Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.aliyun.dingtalkminiapp_1_0.Client Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dingtalkminiapp_1_0;
import com.aliyun.tea.*;
import com.aliyun.dingtalkminiapp_1_0.models.*;
import com.aliyun.teautil.*;
import com.aliyun.teautil.models.*;
import com.aliyun.teaopenapi.*;
import com.aliyun.teaopenapi.models.*;
import com.aliyun.openapiutil.*;
public class Client extends com.aliyun.teaopenapi.Client {
public Client(Config config) throws Exception {
super(config);
this._endpointRule = "";
if (com.aliyun.teautil.Common.empty(_endpoint)) {
this._endpoint = "api.dingtalk.com";
}
}
public CreateMiniAppResponse createMiniApp(CreateMiniAppRequest request) throws Exception {
RuntimeOptions runtime = new RuntimeOptions();
CreateMiniAppHeaders headers = new CreateMiniAppHeaders();
return this.createMiniAppWithOptions(request, headers, runtime);
}
public CreateMiniAppResponse createMiniAppWithOptions(CreateMiniAppRequest request, CreateMiniAppHeaders headers, RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.bizId)) {
body.put("bizId", request.bizId);
}
if (!com.aliyun.teautil.Common.isUnset(request.bizType)) {
body.put("bizType", request.bizType);
}
if (!com.aliyun.teautil.Common.isUnset(request.bundleId)) {
body.put("bundleId", request.bundleId);
}
if (!com.aliyun.teautil.Common.isUnset(request.desc)) {
body.put("desc", request.desc);
}
if (!com.aliyun.teautil.Common.isUnset(request.icon)) {
body.put("icon", request.icon);
}
if (!com.aliyun.teautil.Common.isUnset(request.name)) {
body.put("name", request.name);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
return TeaModel.toModel(this.doROARequest("CreateMiniApp", "miniapp_1.0", "HTTP", "POST", "AK", "/v1.0/miniapp/apps", "json", req, runtime), new CreateMiniAppResponse());
}
public CreateMiniAppPluginResponse createMiniAppPlugin(CreateMiniAppPluginRequest request) throws Exception {
RuntimeOptions runtime = new RuntimeOptions();
CreateMiniAppPluginHeaders headers = new CreateMiniAppPluginHeaders();
return this.createMiniAppPluginWithOptions(request, headers, runtime);
}
public CreateMiniAppPluginResponse createMiniAppPluginWithOptions(CreateMiniAppPluginRequest request, CreateMiniAppPluginHeaders headers, RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.bizId)) {
body.put("bizId", request.bizId);
}
if (!com.aliyun.teautil.Common.isUnset(request.bizType)) {
body.put("bizType", request.bizType);
}
if (!com.aliyun.teautil.Common.isUnset(request.bundleId)) {
body.put("bundleId", request.bundleId);
}
if (!com.aliyun.teautil.Common.isUnset(request.desc)) {
body.put("desc", request.desc);
}
if (!com.aliyun.teautil.Common.isUnset(request.icon)) {
body.put("icon", request.icon);
}
if (!com.aliyun.teautil.Common.isUnset(request.name)) {
body.put("name", request.name);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
return TeaModel.toModel(this.doROARequest("CreateMiniAppPlugin", "miniapp_1.0", "HTTP", "POST", "AK", "/v1.0/miniapp/plugins", "json", req, runtime), new CreateMiniAppPluginResponse());
}
public CreateVersionAcrossBundleResponse createVersionAcrossBundle(CreateVersionAcrossBundleRequest request) throws Exception {
RuntimeOptions runtime = new RuntimeOptions();
CreateVersionAcrossBundleHeaders headers = new CreateVersionAcrossBundleHeaders();
return this.createVersionAcrossBundleWithOptions(request, headers, runtime);
}
public CreateVersionAcrossBundleResponse createVersionAcrossBundleWithOptions(CreateVersionAcrossBundleRequest request, CreateVersionAcrossBundleHeaders headers, RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.bundleId)) {
body.put("bundleId", request.bundleId);
}
if (!com.aliyun.teautil.Common.isUnset(request.miniAppId)) {
body.put("miniAppId", request.miniAppId);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceBundleId)) {
body.put("sourceBundleId", request.sourceBundleId);
}
if (!com.aliyun.teautil.Common.isUnset(request.sourceVersion)) {
body.put("sourceVersion", request.sourceVersion);
}
if (!com.aliyun.teautil.Common.isUnset(request.version)) {
body.put("version", request.version);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
return TeaModel.toModel(this.doROARequest("CreateVersionAcrossBundle", "miniapp_1.0", "HTTP", "POST", "AK", "/v1.0/miniapp/versions/createAcrossBundle", "json", req, runtime), new CreateVersionAcrossBundleResponse());
}
public GetMaxVersionResponse getMaxVersion(GetMaxVersionRequest request) throws Exception {
RuntimeOptions runtime = new RuntimeOptions();
GetMaxVersionHeaders headers = new GetMaxVersionHeaders();
return this.getMaxVersionWithOptions(request, headers, runtime);
}
public GetMaxVersionResponse getMaxVersionWithOptions(GetMaxVersionRequest request, GetMaxVersionHeaders headers, RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.bundleId)) {
query.put("bundleId", request.bundleId);
}
if (!com.aliyun.teautil.Common.isUnset(request.miniAppId)) {
query.put("miniAppId", request.miniAppId);
}
if (!com.aliyun.teautil.Common.isUnset(request.version)) {
query.put("version", request.version);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
));
return TeaModel.toModel(this.doROARequest("GetMaxVersion", "miniapp_1.0", "HTTP", "GET", "AK", "/v1.0/miniapp/apps/maxVersions", "json", req, runtime), new GetMaxVersionResponse());
}
public GetMiniAppMetaDataResponse getMiniAppMetaData(GetMiniAppMetaDataRequest request) throws Exception {
RuntimeOptions runtime = new RuntimeOptions();
GetMiniAppMetaDataHeaders headers = new GetMiniAppMetaDataHeaders();
return this.getMiniAppMetaDataWithOptions(request, headers, runtime);
}
public GetMiniAppMetaDataResponse getMiniAppMetaDataWithOptions(GetMiniAppMetaDataRequest request, GetMiniAppMetaDataHeaders headers, RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.bundleId)) {
body.put("bundleId", request.bundleId);
}
if (!com.aliyun.teautil.Common.isUnset(request.bundleIdTableGmtModified)) {
body.put("bundleIdTableGmtModified", request.bundleIdTableGmtModified);
}
if (!com.aliyun.teautil.Common.isUnset(request.fromAppName)) {
body.put("fromAppName", request.fromAppName);
}
if (!com.aliyun.teautil.Common.isUnset(request.miniAppIdTableGmtModified)) {
body.put("miniAppIdTableGmtModified", request.miniAppIdTableGmtModified);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
return TeaModel.toModel(this.doROARequest("GetMiniAppMetaData", "miniapp_1.0", "HTTP", "POST", "AK", "/v1.0/miniapp/apps/metadata", "json", req, runtime), new GetMiniAppMetaDataResponse());
}
public GetSettingByMiniAppIdResponse getSettingByMiniAppId(String miniAppId) throws Exception {
RuntimeOptions runtime = new RuntimeOptions();
GetSettingByMiniAppIdHeaders headers = new GetSettingByMiniAppIdHeaders();
return this.getSettingByMiniAppIdWithOptions(miniAppId, headers, runtime);
}
public GetSettingByMiniAppIdResponse getSettingByMiniAppIdWithOptions(String miniAppId, GetSettingByMiniAppIdHeaders headers, RuntimeOptions runtime) throws Exception {
miniAppId = com.aliyun.openapiutil.Client.getEncodeParam(miniAppId);
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders)
));
return TeaModel.toModel(this.doROARequest("GetSettingByMiniAppId", "miniapp_1.0", "HTTP", "GET", "AK", "/v1.0/miniapp/apps/settings", "json", req, runtime), new GetSettingByMiniAppIdResponse());
}
public InvokeHtmlBundleBuildResponse invokeHtmlBundleBuild(InvokeHtmlBundleBuildRequest request) throws Exception {
RuntimeOptions runtime = new RuntimeOptions();
InvokeHtmlBundleBuildHeaders headers = new InvokeHtmlBundleBuildHeaders();
return this.invokeHtmlBundleBuildWithOptions(request, headers, runtime);
}
public InvokeHtmlBundleBuildResponse invokeHtmlBundleBuildWithOptions(InvokeHtmlBundleBuildRequest request, InvokeHtmlBundleBuildHeaders headers, RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.bundleId)) {
body.put("bundleId", request.bundleId);
}
if (!com.aliyun.teautil.Common.isUnset(request.miniAppId)) {
body.put("miniAppId", request.miniAppId);
}
if (!com.aliyun.teautil.Common.isUnset(request.version)) {
body.put("version", request.version);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
return TeaModel.toModel(this.doROARequest("InvokeHtmlBundleBuild", "miniapp_1.0", "HTTP", "POST", "AK", "/v1.0/miniapp/h5Bundles/build", "json", req, runtime), new InvokeHtmlBundleBuildResponse());
}
public ListAvaiableVersionResponse listAvaiableVersion(ListAvaiableVersionRequest request) throws Exception {
RuntimeOptions runtime = new RuntimeOptions();
ListAvaiableVersionHeaders headers = new ListAvaiableVersionHeaders();
return this.listAvaiableVersionWithOptions(request, headers, runtime);
}
public ListAvaiableVersionResponse listAvaiableVersionWithOptions(ListAvaiableVersionRequest request, ListAvaiableVersionHeaders headers, RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.bundleId)) {
body.put("bundleId", request.bundleId);
}
if (!com.aliyun.teautil.Common.isUnset(request.miniAppId)) {
body.put("miniAppId", request.miniAppId);
}
if (!com.aliyun.teautil.Common.isUnset(request.pageNum)) {
body.put("pageNum", request.pageNum);
}
if (!com.aliyun.teautil.Common.isUnset(request.pageSize)) {
body.put("pageSize", request.pageSize);
}
if (!com.aliyun.teautil.Common.isUnset(request.versionTypeSet)) {
body.put("versionTypeSet", request.versionTypeSet);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
return TeaModel.toModel(this.doROARequest("ListAvaiableVersion", "miniapp_1.0", "HTTP", "POST", "AK", "/v1.0/miniapp/apps/versions/query", "json", req, runtime), new ListAvaiableVersionResponse());
}
public QueryHtmlBundleBuildResponse queryHtmlBundleBuild(QueryHtmlBundleBuildRequest request) throws Exception {
RuntimeOptions runtime = new RuntimeOptions();
QueryHtmlBundleBuildHeaders headers = new QueryHtmlBundleBuildHeaders();
return this.queryHtmlBundleBuildWithOptions(request, headers, runtime);
}
public QueryHtmlBundleBuildResponse queryHtmlBundleBuildWithOptions(QueryHtmlBundleBuildRequest request, QueryHtmlBundleBuildHeaders headers, RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.bundleId)) {
query.put("bundleId", request.bundleId);
}
if (!com.aliyun.teautil.Common.isUnset(request.miniAppId)) {
query.put("miniAppId", request.miniAppId);
}
if (!com.aliyun.teautil.Common.isUnset(request.version)) {
query.put("version", request.version);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
));
return TeaModel.toModel(this.doROARequest("QueryHtmlBundleBuild", "miniapp_1.0", "HTTP", "GET", "AK", "/v1.0/miniapp/h5Bundles/buildResults", "json", req, runtime), new QueryHtmlBundleBuildResponse());
}
public SetExtendSettingResponse setExtendSetting(SetExtendSettingRequest request) throws Exception {
RuntimeOptions runtime = new RuntimeOptions();
SetExtendSettingHeaders headers = new SetExtendSettingHeaders();
return this.setExtendSettingWithOptions(request, headers, runtime);
}
public SetExtendSettingResponse setExtendSettingWithOptions(SetExtendSettingRequest request, SetExtendSettingHeaders headers, RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.buildH5Bundle)) {
body.put("buildH5Bundle", request.buildH5Bundle);
}
if (!com.aliyun.teautil.Common.isUnset(request.miniAppId)) {
body.put("miniAppId", request.miniAppId);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
return TeaModel.toModel(this.doROARequest("SetExtendSetting", "miniapp_1.0", "HTTP", "PUT", "AK", "/v1.0/miniapp/apps/settings", "json", req, runtime), new SetExtendSettingResponse());
}
public UpdateVersionStatusResponse updateVersionStatus(UpdateVersionStatusRequest request) throws Exception {
RuntimeOptions runtime = new RuntimeOptions();
UpdateVersionStatusHeaders headers = new UpdateVersionStatusHeaders();
return this.updateVersionStatusWithOptions(request, headers, runtime);
}
public UpdateVersionStatusResponse updateVersionStatusWithOptions(UpdateVersionStatusRequest request, UpdateVersionStatusHeaders headers, RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.bundleId)) {
body.put("bundleId", request.bundleId);
}
if (!com.aliyun.teautil.Common.isUnset(request.miniAppId)) {
body.put("miniAppId", request.miniAppId);
}
if (!com.aliyun.teautil.Common.isUnset(request.version)) {
body.put("version", request.version);
}
if (!com.aliyun.teautil.Common.isUnset(request.versionType)) {
body.put("versionType", request.versionType);
}
java.util.Map realHeaders = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(headers.commonHeaders)) {
realHeaders = headers.commonHeaders;
}
if (!com.aliyun.teautil.Common.isUnset(headers.xAcsDingtalkAccessToken)) {
realHeaders.put("x-acs-dingtalk-access-token", com.aliyun.teautil.Common.toJSONString(headers.xAcsDingtalkAccessToken));
}
OpenApiRequest req = OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("headers", realHeaders),
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
return TeaModel.toModel(this.doROARequest("UpdateVersionStatus", "miniapp_1.0", "HTTP", "POST", "AK", "/v1.0/miniapp/versions/status", "json", req, runtime), new UpdateVersionStatusResponse());
}
}