发送 HTTP 请求(Java)

ApiResponse response=apiClient.execute(request);System.out.println(JSON.toJSONString(response));} 说明 当前网关需要通过域名辅助进行 API 匹配,当域名无法直接访问时,可以通过 header 传递,具体方法请参加下文 通过 header 设置 ...

HTTPS 请求配置

为保障通信安全,建议您保持开启,若在测试环境必须忽略证书校验,可以通过运行时参数 IgnoreSSL 设置:public static void Main(string[]args){ AlibabaCloud.OpenApiClient.Models.Config config=new AlibabaCloud.OpenApiClient.Models....

agent代理

try { response=syncApiClient.postBody(host,path,request,true,headers);设置请求参数域名、path、request,isHttps,headers String result=new String(response.getBody(),"UTF-8");if(result!null){ Map map=JSON.parseObject(result);...

数据加密

API 网关提供客户端与网关之间...ApiResponse response=apiClient.execute(request);System.out.println(JSON.toJSONString(response));} 如需对加密功能进行验证,运行调用代码后,使用 Tcpdump 命令进行网络抓包,下图所示为加密后的效果。

人员账号服务API

设置请求参数域名、path、request,isHttps,headers ApiResponse response=syncApiClient.postBody("api.link.aliyun.com","/user/account/unregister",request,true,headers);System.out.println("response code="+response.getCode()+...

集成SDK

初始化请求客户端 方法一:使用AK初始化 AlibabaCloud.OpenApiClient.Models.Config config=new AlibabaCloud.OpenApiClient.Models.Config {/必填,您的 AccessKey ID AccessKeyId=Environment.GetEnvironmentVariable("ALIBABA_CLOUD_...

日志SDK

[IMSLog setLevel:IMSLogLevelDebug forTag:@"IMSApiClient"]·IMSLogError(tag,frmt,.)IMSLogWarn(tag,frmt,.)IMSLogInfo(tag,frmt,.)IMSLogDebug(tag,frmt,.)IMSLogVerbose(tag,frmt,.)eg:IMSLogError(@"IMSApiClient",@"错误:%",@...

可视对讲服务API

设置请求参数域名、path、request,isHttps,headers ApiResponse response=syncApiClient.postBody("api.link.aliyun.com","/entrance/paas/sipserver/query",request,true,headers);System.out.println("response code="+response.getCode...

传统门禁服务API

设置请求参数域名、path、request,isHttps,headers ApiResponse response=syncApiClient.postBody("api.link.aliyun.com","/entrance/paas/user/modify",request,true,headers);System.out.println("response code="+response.getCode()+...

项目管理API

1.概述 应用服务平台项目的创建和查询API。2.接口定义 2.1 新建项目 路径/open/project/univisal/create 版本号 1.0.0 协议 HTTPS 请求方法 POST 授权类型 app签名 超时时间 10000 请求参数 名称 类型 是否必选 描述 name String 是 项目...

Java API Client(8.x)

本文基于Java API Client 8.x版本,为您介绍Elasticsearch Java API的用法。背景信息 Elasticsearch在7.17版本之前使用的Java客户端是Java REST Client,从7.17版本开始Elastic官方将Java REST Client标记为弃用(deprecated),并推荐使用...

视频监控服务API

设置请求参数域名、path、request,isHttps,headers ApiResponse response=syncApiClient.postBody("api.link.aliyun.com","/vision/stream/query",request,true,headers);System.out.println("response code="+response.getCode()+...

超时配置

默认连接超时为5秒,读超时为10秒:public static void Main(string[]args){ AlibabaCloud.OpenApiClient.Models.Config config=new AlibabaCloud.OpenApiClient.Models.Config {/您的AccessKey ID AccessKeyId=accessKeyId,/您的AccessKey...

重试机制

默认不会进行重试,如果打开重试配置未配置重试次数,则默认最多重试3次:public static void Main(string[]args){ AlibabaCloud.OpenApiClient.Models.Config config=new AlibabaCloud.OpenApiClient.Models.Config {/您的AccessKey ID ...

查询统一身份列表

设置请求参数域名,path,request,isHttps,headers ApiResponse response=syncApiClient.postBody("api.link.aliyun.com","/iotx/account/queryIdentityList",request,true,headers);System.out.println("response code="+response.getCode()...

查询云存储套餐是否可以购买

设置请求参数域名,path,request,isHttps,headers ApiResponse response=syncApiClient.postBody("api.link.aliyun.com","/vision/customer/cloudstorage/commodity/check",request,true,headers);System.out.println("response code="+...

代理配置

Client>环境变量:public static void Main(string[]args){ AlibabaCloud.OpenApiClient.Models.Config config=new AlibabaCloud.OpenApiClient.Models.Config {/您的AccessKey ID AccessKeyId=accessKeyId,/您的AccessKey Secret ...

使用SDK调用API

2.使用SDK调用API 通过控制台下载的SDK,下载解压后的目录结构如图:SDK文件夹*sdk/{{regionId}}`JavaSDK文件夹,包含每个Group的所有API的接口调用代码`*HttpApiClient{{group}}.java `包含对应Group所有HTTP通道的API方法`*...

文本向量调用参考

nil { fmt.Printf("failed to new client,err:%v",err)return } request:=apiClient.CreateTextEmbeddingsRequest{AgentKey:&agentKey} text:="今天天气怎么样"request.SetInput([]*string{&text})result,err:=openapiClient....

应用设备管理服务API

1.概述 提供应用下设备列表、设备属性及状态获取,设备属性设置及设备服务调用。2.接口定义 2.1设备查询 2.1.1 批量获取应用的产品所有设备属性状态 路径/app/thing/properties/batch/get 版本号 1.0.1 协议 HTTPS 请求方法 POST 授权类型 ...

AI写真:Java SDK使用说明

public ApiClient apiClient=new ApiClient(host,appId,token);public AigcImagesApi api=new AigcImagesApi(apiClient);public void aigcImagesTrainTest()throws Exception { List<String>images=Arrays.asList("https://xxx/0.jpg",...

.NET SDK使用说明

param accessKeyId*@param accessKeySecret*@param regionId*@return Client*@throws Exception*/public static AlibabaCloud.SDK.Iot20180120.Client CreateClient(){ AlibabaCloud.OpenApiClient.Models.Config config=new AlibabaCloud....

人脸门禁服务API

设置请求参数域名、path、request,isHttps,headers ApiResponse response=syncApiClient.postBody("api.link.aliyun.com","/face/paas/image/save",request,true,headers);System.out.println("response code="+response.getCode()+...

设备告警开放服务API

1.概述 告警开放服务是应用服务平台告警功能的API版本,除继承原有告警功能外,还扩展支持告警边缘端部署运行,不同类型设备联合告警,时间窗口延迟触发告警等功能。2.接口定义 2.1 新增或更新告警规则 路径/alarm/rule/addorupdate 版本号...

API通道SDK

ioTAPIClient.send(request,new IoTCallback(){@Override public void onFailure(IoTRequest request,Exception e){/TODO根据e,处理异常 }@Override public void onResponse(IoTRequest request,IoTResponse response){ int code=response...

C# SDK使用指南

AlibabaCloud.OpenApiClient.Models.Config config=new AlibabaCloud.OpenApiClient.Models.Config {/通过Credentials获取配置中的AccessKey Secret。AccessKeyId=akCredential.GetAccessKeyId(),/通过Credentials获取配置中的AccessKey ...

C# SDK使用指南

AlibabaCloud.OpenApiClient.Models.Config config=new AlibabaCloud.OpenApiClient.Models.Config {/通过Credentials获取配置中的AccessKey Secret。AccessKeyId=akCredential.GetAccessKeyId(),/通过Credentials获取配置中的AccessKey ...

取消排队中异步任务

let getAsyncJobResultRequest=new ViapiClient.GetAsyncJobResultRequest({ jobId:"1299348D-DFF2-5FDA-8C9C-C2D14EBF63F2",});let runtime=new TeaUtil.RuntimeOptions({ });client.getAsyncJobResultWithOptions...

查询异步任务结果

let getAsyncJobResultRequest=new ViapiClient.GetAsyncJobResultRequest({ jobId:"1299348D-DFF2-5FDA-8C9C-C2D14EBF63F2",});let runtime=new TeaUtil.RuntimeOptions({ });client.getAsyncJobResultWithOptions...

.Net SDK调用示例

AlibabaCloud.OpenApiClient.Models.Config config=new AlibabaCloud.OpenApiClient.Models.Config {/通过阿里云Credentials工具从环境变量中读取AccessKey,来实现API访问的身份验证。Credential=new Aliyun.Credentials.Client(null)};...

API通道SDK

import<IMSApiClient/IMSApiClient.h>/构建请求 NSDictionary*params={@"input":@"测试"};IMSIoTRequestBuilder*builder=[[IMSIoTRequestBuilder alloc]initWithPath:@"/kit/debug/ping"apiVersion:@"1.0.0"params:params];可选参数/...

管理访问凭证

AlibabaCloud.OpenApiClient.Models.Config ecsConfig=new AlibabaCloud.OpenApiClient.Models.Config();配置云产品服务接入地址(endpoint)。ecsConfig.Endpoint="ecs.cn-beijing.aliyuncs.com";使用Credentials配置凭证。ecsConfig....

集成SDK

其Node.js语言安装配置文件如下,最新版本请参见 alicloud/openapi-client:npm i@alicloud/openapi-client 第三步:调用OpenAPI 您可以根据 快速开始 文档下载示例代码。接下来我们以特化调用代码为例,讲解调用过程。如果您选择泛化调用...

SDK方式调用

class Sample {/*使用AK&SK初始化账号Client*@param string$accessKeyId*@param string$accessKeySecret*@return OpenApiClient Client*/public static function createClient($accessKeyId,$accessKeySecret){$config=new Config([/必填,...

OAuth对接实践-Linux应用

本章结合Demo代码,介绍 单租户托管型 应用免登及用户信息获取的相关流程。开发之前,请务必参考详细的 对接专题文档,以便对OAuth对接有全面的了解。注:本Demo代码,基于Springboot框架开发,下载链接请参考文章底部的“示例Demo”。1 ...

AI写真:Python SDK使用说明

模型发起训练(aigc_images_train)请求代码示例如下:from ai_service_python_sdk.client.api_client import ApiClient from ai_service_python_sdk.client.api.ai_service_aigc_images_api import AIGCImagesApi host='...

.NET SDK调用示例

namespace InitSmartVerify { public class Program { public static AlibabaCloud.SDK.Cloudauth20200618.Client CreateClient(string endpoint){ AlibabaCloud.OpenApiClient.Models.Config config=new AlibabaCloud.OpenApiClient....

.NET SDK调用示例

namespace InitSmartVerify { public class Program { public static AlibabaCloud.SDK.Cloudauth20200618.Client CreateClient(string endpoint){ AlibabaCloud.OpenApiClient.Models.Config config=new AlibabaCloud.OpenApiClient....

身份证核验.NET SDK调用示例

namespace InitSmartVerify { public class Program { public static AlibabaCloud.SDK.Cloudauth20200618.Client CreateClient(string endpoint){ AlibabaCloud.OpenApiClient.Models.Config config=new AlibabaCloud.OpenApiClient....

银行卡核验.NET SDK调用示例

namespace InitSmartVerify { public class Program { public static AlibabaCloud.SDK.Cloudauth20200618.Client CreateClient(string endpoint){ AlibabaCloud.OpenApiClient.Models.Config config=new AlibabaCloud.OpenApiClient....
共有200条 < 1 2 3 4 ... 200 >
跳转至: GO
产品推荐
云服务器 安全管家服务 安全中心
这些文档可能帮助您
弹性公网IP 短信服务 人工智能平台 PAI 金融分布式架构 对象存储 物联网平台
新人特惠 爆款特惠 最新活动 免费试用