Git Product home page Git Product logo

tencentcloud-sdk-java's Introduction

简介

欢迎使用腾讯云开发者工具套件(SDK)3.0,SDK3.0是云 API3.0 平台的配套工具。 为方便 JAVA 开发者调试和接入腾讯云产品 API,这里向您介绍适用于 Java 的腾讯云开发工具包,并提供首次使用开发工具包的简单示例。让您快速获取腾讯云 Java SDK 并开始调用。

依赖环境

  1. 依赖环境:JDK 7 版本及以上。
  2. 从 腾讯云控制台 开通相应产品。
  3. 获取 SecretID、SecretKey 以及调用地址(endpoint),endpoint 一般形式为*.tencentcloudapi.com,如CVM 的调用地址为 cvm.tencentcloudapi.com,具体参考各产品说明。

获取安装

安装 Java SDK 前,先获取安全凭证。在第一次使用云API之前,用户首先需要在腾讯云控制台上申请安全凭证,安全凭证包括 SecretID 和 SecretKey,SecretID 是用于标识 API 调用者的身份,SecretKey 是用于加密签名字符串和服务器端验证签名字符串的密钥 SecretKey 必须严格保管,避免泄露。您也可以前往从零开始使用腾讯云 Java SDK 界面查看更为基础和详细的 Java SDK 的安装和使用说明。

通过 Maven 安装(推荐)

从 3.1.500 版本开始,本项目使用 KonaJDK 编译发布。

通过 Maven 获取安装是使用 JAVA SDK 的推荐方法,Maven 是 JAVA 的依赖管理工具,支持您项目所需的依赖项,并将其安装到项目中。关于 Maven 详细可参考 Maven 官网。

  1. 请访问Maven官网下载对应系统Maven安装包进行安装;
  2. 为您的项目添加 Maven 依赖项,只需在 Maven pom.xml 添加以下依赖项即可。注意这里的版本号只是举例,您可以在Maven仓库上找到最新的版本(最新版本是3.1.708)。请知悉,SDK 是先确认 mvn deploy 发布成功后再更新 GitHub tag,但是 Maven 官网索引更新有延迟,导致新发布的版本暂时(约1-2小时)在 Maven 官网搜索不到,实际不影响使用最新版本,您可以正常执行 mvn compile 等指令。
  3. maven仓库中显示的4.0.11是废弃版本,我们已经联系maven官方删除jar包,但maven索引无法清除,请勿使用;
  4. 引用方法可参考示例。
<dependency>
    <groupId>com.tencentcloudapi</groupId>
    <artifactId>tencentcloud-sdk-java</artifactId>
    <!-- go to https://search.maven.org/search?q=tencentcloud-sdk-java and get the latest version. -->
    <!-- 请到https://search.maven.org/search?q=tencentcloud-sdk-java查询所有版本,最新版本如下 -->
    <version>3.1.1000</version>
</dependency>
  1. 如上引用方式会将腾讯云所有产品sdk下载到本地,可以将artifactId换成tencentcloud-sdk-java-cvm/cbs/vpc等,即可引用特定产品的sdk,代码中使用方式和大包相同,可参考示例。最新版本也可在Maven仓库查询,可大大节省存储空间。
  2. **大陆地区的用户可以使用镜像源加速下载,编辑 maven 的 settings.xml 配置文件,在 mirrors 段落增加镜像配置:
    <mirror>
      <id>tencent</id>
      <name>tencent maven mirror</name>
      <url>https://mirrors.tencent.com/nexus/repository/maven-public/</url>
      <mirrorOf>*</mirrorOf>
    </mirror>

通过源码包安装

  1. 前往 Github 仓库 或者 Gitee 仓库 下载源码压缩包;
  2. 解压源码包到您项目合适的位置;
  3. 需要将vendor目录下的jar包放在java的可找到的路径中;
  4. 引用方法可参考示例。

示例

以查询实例接口DescribeInstances为例:

简化版

import com.tencentcloudapi.common.Credential;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import com.tencentcloudapi.cvm.v20170312.CvmClient;
import com.tencentcloudapi.cvm.v20170312.models.DescribeInstancesRequest;
import com.tencentcloudapi.cvm.v20170312.models.DescribeInstancesResponse;

public class DescribeInstances {
    public static void main(String[] args) {
        try {
            // 为了保护密钥安全,建议将密钥设置在环境变量中或者配置文件中,请参考本文凭证管理章节。
            // 硬编码密钥到代码中有可能随代码泄露而暴露,有安全隐患,并不推荐。
            // Credential cred = new Credential("SecretId", "SecretKey");
            Credential cred = new Credential(System.getenv("TENCENTCLOUD_SECRET_ID"), System.getenv("TENCENTCLOUD_SECRET_KEY"));
            CvmClient client = new CvmClient(cred, "ap-shanghai");

            DescribeInstancesRequest req = new DescribeInstancesRequest();
            DescribeInstancesResponse resp = client.DescribeInstances(req);

            System.out.println(DescribeInstancesResponse.toJsonString(resp));
        } catch (TencentCloudSDKException e) {
            System.out.println(e.toString());
        }
    }
}

详细版

import com.tencentcloudapi.common.Credential;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
// 导入对应产品模块的client
import com.tencentcloudapi.cvm.v20170312.CvmClient;
// 导入要请求接口对应的request response类
import com.tencentcloudapi.cvm.v20170312.models.DescribeInstancesRequest;
import com.tencentcloudapi.cvm.v20170312.models.DescribeInstancesResponse;
import com.tencentcloudapi.cvm.v20170312.models.Filter;
//导入可选配置类
import com.tencentcloudapi.common.profile.ClientProfile;
import com.tencentcloudapi.common.profile.HttpProfile;
import com.tencentcloudapi.common.profile.Language;

public class DescribeInstances {
    public static void main(String[] args) {
        try {
            // 实例化一个认证对象,入参需要传入腾讯云账户 SecretId,SecretKey。
            // 为了保护密钥安全,建议将密钥设置在环境变量中或者配置文件中,请参考本文凭证管理章节。
            // 硬编码密钥到代码中有可能随代码泄露而暴露,有安全隐患,并不推荐。
            // Credential cred = new Credential("SecretId", "SecretKey");
            Credential cred = new Credential(System.getenv("TENCENTCLOUD_SECRET_ID"), System.getenv("TENCENTCLOUD_SECRET_KEY"));

            // 实例化一个http选项,可选的,没有特殊需求可以跳过
            HttpProfile httpProfile = new HttpProfile();
            // 从3.0.96版本开始, 单独设置 HTTP 代理
            // httpProfile.setProxyHost("真实代理ip");
            // httpProfile.setProxyPort(真实代理端口);
            httpProfile.setReqMethod("GET"); // get请求(默认为post请求)
            httpProfile.setConnTimeout(30); // 请求连接超时时间,单位为秒(默认60秒)
            httpProfile.setWriteTimeout(30);  // 设置写入超时时间,单位为秒(默认0秒)
            httpProfile.setReadTimeout(30);  // 设置读取超时时间,单位为秒(默认0秒)
            httpProfile.setEndpoint("cvm.ap-shanghai.tencentcloudapi.com"); // 指定接入地域域名(默认就近接入)

            // 实例化一个client选项,可选的,没有特殊需求可以跳过
            ClientProfile clientProfile = new ClientProfile();
            clientProfile.setSignMethod(ClientProfile.SIGN_TC3_256); // 指定签名算法(默认为TC3-HMAC-SHA256)
            // 自3.1.80版本开始,SDK 支持打印日志。
            clientProfile.setHttpProfile(httpProfile);
            clientProfile.setDebug(true);
            // 从3.1.16版本开始,支持设置公共参数 Language, 默认不传,选择(ZH_CN or EN_US)
            clientProfile.setLanguage(Language.EN_US);
            // 实例化要请求产品(以cvm为例)的client对象,clientProfile是可选的
            CvmClient client = new CvmClient(cred, "ap-shanghai", clientProfile);

            // 实例化一个cvm实例信息查询请求对象,每个接口都会对应一个request对象。
            DescribeInstancesRequest req = new DescribeInstancesRequest();

            // 填充请求参数,这里request对象的成员变量即对应接口的入参
            // 您可以通过官网接口文档或跳转到request对象的定义处查看请求参数的定义
            Filter respFilter = new Filter(); // 创建Filter对象, 以zone的维度来查询cvm实例
            respFilter.setName("zone");
            respFilter.setValues(new String[] { "ap-shanghai-1", "ap-shanghai-2" });
            req.setFilters(new Filter[] { respFilter }); // Filters 是成员为Filter对象的列表

            // 通过client对象调用DescribeInstances方法发起请求。注意请求方法名与请求对象是对应的
            // 返回的resp是一个DescribeInstancesResponse类的实例,与请求对象对应
            DescribeInstancesResponse resp = client.DescribeInstances(req);

            // 输出json格式的字符串回包
            System.out.println(DescribeInstancesResponse.toJsonString(resp));

            // 也可以取出单个值。
            // 您可以通过官网接口文档或跳转到response对象的定义处查看返回字段的定义
            System.out.println(resp.getTotalCount());
        } catch (TencentCloudSDKException e) {
            System.out.println(e.toString());
        }
    }
}

详细版示例代码分步骤介绍

  1. 导入待调用的类
import com.tencentcloudapi.common.Credential;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
// 导入对应产品模块的client
import com.tencentcloudapi.cvm.v20170312.CvmClient;
// 导入要请求接口对应的request response类
import com.tencentcloudapi.cvm.v20170312.models.DescribeInstancesRequest;
import com.tencentcloudapi.cvm.v20170312.models.DescribeInstancesResponse;
import com.tencentcloudapi.cvm.v20170312.models.Filter;
//导入可选配置类
import com.tencentcloudapi.common.profile.ClientProfile;
import com.tencentcloudapi.common.profile.HttpProfile;
import com.tencentcloudapi.common.profile.Language;
  1. 实例化一个认证对象cred,入参需要传入腾讯云账户密钥 secretId,secretKey, 前往 API 密钥管理 页面,即可进行获取密钥。此处还需注意密钥对的保密。
// 为了保护密钥安全,建议将密钥设置在环境变量中或者配置文件中,请参考本文凭证管理章节。
// 硬编码密钥到代码中有可能随代码泄露而暴露,有安全隐患,并不推荐。
Credential cred = new Credential(System.getenv("TENCENTCLOUD_SECRET_ID"), System.getenv("TENCENTCLOUD_SECRET_KEY"));
  1. 实例化一个http选项,若没有特殊需求可参照简化版示例代码跳过设置。若有需求可以参照下方示例代码设置http选项中的参数。
HttpProfile httpProfile = new HttpProfile();
//  从3.1.16版本开始, 单独设置 HTTP 代理
// httpProfile.setProxyHost("真实代理ip");
// httpProfile.setProxyPort(真实代理端口);
// get请求(默认为post请求)
httpProfile.setReqMethod("GET"); // get请求(默认为post请求)
httpProfile.setProtocol("https://");  // 合法值:https:// 或者 http:// ,公有云只能使用 https。
httpProfile.setConnTimeout(30); // 请求连接超时时间,单位为秒(默认60秒)
httpProfile.setWriteTimeout(30);  // 设置写入超时时间,单位为秒(默认0秒)
httpProfile.setReadTimeout(30);  // 设置读取超时时间,单位为秒(默认0秒)
httpProfile.setEndpoint("cvm.ap-shanghai.tencentcloudapi.com"); // 指定接入地域域名(默认就近接入)
  1. 实例化一个client选项,若没有特殊需求可参照简化版示例代码跳过设置。若有需求可以参照下方示例代码设置client选项中的参数。
ClientProfile clientProfile = new ClientProfile();
clientProfile.setSignMethod(ClientProfile.SIGN_TC3_256); // 指定签名算法(默认为TC3-HMAC-SHA256)
// 自3.1.80版本开始,SDK 支持打印日志。
clientProfile.setHttpProfile(httpProfile);
clientProfile.setDebug(true);
// 从3.1.16版本开始,支持设置公共参数 Language, 默认不传,选择(ZH_CN or EN_US)
clientProfile.setLanguage(Language.EN_US);
  1. 实例化要请求产品的client对象,示例代码以cvm产品为例,实例化CvmClient对象。
CvmClient client = new CvmClient(cred, "ap-shanghai", clientProfile);
  1. 实例化一个cvm实例信息查询请求对象req,每个接口都会对应一个request对象,若有需要可以参照官网文档设置对象中的参数。
DescribeInstancesRequest req = new DescribeInstancesRequest();
// 填充请求参数,这里request对象的成员变量即对应接口的入参
// 您可以通过官网接口文档或跳转到request对象的定义处查看请求参数的定义
Filter respFilter = new Filter(); // 创建Filter对象, 以zone的维度来查询cvm实例
respFilter.setName("zone");
respFilter.setValues(new String[] { "ap-shanghai-1", "ap-shanghai-2" });
req.setFilters(new Filter[] { respFilter }); // Filters 是成员为Filter对象的列表
  1. 通过client对象调用您想调用的接口,返回对应的Response类的实例
// 通过client对象调用DescribeInstances方法发起请求。注意请求方法名与请求对象是对应的
// 返回的resp是一个DescribeInstancesResponse类的实例,与请求对象对应
DescribeInstancesResponse resp = client.DescribeInstances(req);
  1. 可以打印输出返回的数据值。
// 输出json格式的字符串回包
System.out.println(DescribeInstancesResponse.toJsonString(resp));
// 也可以取出单个值。
// 您可以通过官网接口文档或跳转到response对象的定义处查看返回字段的定义
System.out.println(resp.getTotalCount());
} 
  1. 使用catch处理报错,错误码详细内容请参考官网产品文档对应的错误码章节。
catch (TencentCloudSDKException e) {
    System.out.println(e.toString());
}

更多示例

您可以在github中examples目录下找到更多详细的示例。

相关配置

代理

从3.0.96版本开始,可以单独设置 HTTP 代理:

HttpProfile httpProfile = new HttpProfile();
httpProfile.setProxyHost("代理ip或者域名");
httpProfile.setProxyPort(代理端口);
httpProfile.setProxyUsername("代理用户名");
httpProfile.setProxyPassword("代理密码");

语言

从3.1.16版本开始,我们添加了对公共参数 Language 的支持,以满足部分产品国际化的诉求。和以前一样,Language 默认不传,行为由各产品接口自行决定,通常是中文的,但也有默认英文的。目前可选值为中文或者英文,通过如下方法设置:

import com.tencentcloudapi.common.profile.ClientProfile;
import com.tencentcloudapi.common.profile.Language;
...
    ClientProfile clientProfile = new ClientProfile();
    clientProfile.setLanguage(Language.ZH_CN);

支持http

SDK支持 http协议和https协议,通过设置HttpProfile的setProtocol()方法可以实现协议间的切换:

      HttpProfile httpProfile = new HttpProfile();
      httpProfile.setProtocol("http://"); //http协议
      httpProfile.setProtocol("https://"); //https协议

支持打印日志

自3.1.80版本开始,SDK 支持打印日志。 首先,在创建 CLientProfile 对象时,设置 debug 模式为真,会打印sdk异常信息和流量信息

      ClientProfile clientProfile = new ClientProfile();
      clientProfile.setDebug(true);

腾讯云java sdk 使用commons.logging类进行打印日志,如下所示。

九月 10, 2020 5:14:30 下午 com.tencentcloudapi.cvm.v20170312.CvmClient info
信息: send request, request url: https://cvm.ap-shanghai.tencentcloudapi.com/?Nonce=367595572&Action=DescribeInstances&Filters.0.Values.1=ap-shanghai-2&Version=2017-03-12&Filters.0.Values.0=ap-shanghai-1&SecretId=AKIDziAMHwiVO0LPCizu61e1iCQP7YiaOX7Q&Filters.0.Name=zone&RequestClient=SDK_JAVA_3.1.129&Region=ap-shanghai&SignatureMethod=HmacSHA256&Timestamp=1599729270&Signature=DcGRPdquMZZRPj1NFXP5bsOGnRlaT2KXy7aegNhZa00%3D. request headers information: 
九月 10, 2020 5:14:32 下午 com.tencentcloudapi.cvm.v20170312.CvmClient info
信息: recieve response, response url: https://cvm.ap-shanghai.tencentcloudapi.com/?Nonce=367595572&Action=DescribeInstances&Filters.0.Values.1=ap-shanghai-2&Version=2017-03-12&Filters.0.Values.0=ap-shanghai-1&SecretId=AKIDziAMHwiVO0LPCizu61e1iCQP7YiaOX7Q&Filters.0.Name=zone&RequestClient=SDK_JAVA_3.1.129&Region=ap-shanghai&SignatureMethod=HmacSHA256&Timestamp=1599729270&Signature=DcGRPdquMZZRPj1NFXP5bsOGnRlaT2KXy7aegNhZa00%3D, response headers: Server: nginx;Date: Thu, 10 Sep 2020 09:14:32 GMT;Content-Type: application/json;Content-Length: 103;Connection: keep-alive;OkHttp-Selected-Protocol: http/1.1;OkHttp-Sent-Millis: 1599729271230;OkHttp-Received-Millis: 1599729272020;,response body information: com.squareup.okhttp.internal.http.RealResponseBody@8646db9

用户可以根据自己的需要配置日志打印类,如log4j 配置方法如下:

  • 配置pom文件,设置log4j版本。
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.17</version>
    </dependency>
  • 设置环境变量为log4j, 并创建log类
System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.Log4JLogger");
Log logger = LogFactory.getLog("TestLog");
logger.info("hello world");

地域容灾

3.1.779开始,腾讯云 JAVA SDK 支持地域容灾功能:

默认当请求满足以下条件时:

  1. 失败次数 >= 5 次
  2. 失败率 >= 75%

SDK 会自动将您请求的地域设置为备选地域。

相关设置如下:

    // 设置备用请求地址,不需要指定服务,SDK 会自动在头部加上服务名(如cvm)
    // 例如,设置为 ap-guangzhou.tencentcloudapi.com,则最终的请求为 cvm.ap-guangzhou.tencentcloudapi.com
    clientProfile.setBackupEndpoint("ap-guangzhou.tencentcloudapi.com");

    // 自定义断路器条件
    CircuitBreaker.Setting setting = new CircuitBreaker.Setting();
    setting.maxFailNum = 6;
    setting.maxFailPercentage = 0.8f;
    CircuitBreaker rb = new CircuitBreaker(setting);
    client.setRegionBreaker(rb);

此功能仅支持单个客户端的同步请求。

Common Client

从 3.1.303 版本开始腾讯云 Java SDK 支持使用泛用性的 API 调用方式(Common Client)进行请求。您只需要安装 Common 包,即可向任何产品发起调用。

注意,您必须明确知道您调用的接口所需参数,否则可能会调用失败。

目前仅支持使用POST方式,且签名方法必须使用签名方法 v3。

详细使用请参阅示例:使用 Common Client 进行调用

支持重试请求

从 3.1.310 版本开始腾讯云 Java SDK 支持重试请求。对于每一个请求,您可以设置重试次数,如果接口请求未成功,就进行重试,直到请求成功或者达到重试次数为止。待设置的重试次数最大为10,最小为0,每次重试失败需要睡眠1秒钟。

详细使用请参阅示例:使用 retry 进行重试请求

凭证管理

腾讯云 Java SDK 目前支持以下几种方式进行凭证管理:

  1. 环境变量

默认读取环境变量 TENCENTCLOUD_SECRET_IDTENCENTCLOUD_SECRET_KEY 获取 secretId 和 secretKey。相关代码如下:

Credential cred = new EnvironmentVariableCredentialsProvider().getCredentials();
  1. 配置文件

配置文件路径要求为:

  • Windows: c:\Users\NAME\.tencentcloud\credentials
  • Linux: ~/.tencentcloud/credentials/etc/tencentcloud/credentials

配置文件格式如下:

[default]
secret_id = xxxxx
secret_key = xxxxx

相关代码如下:

Credential cred = new ProfileCredentialsProvider().getCredentials();
  1. 角色扮演

有关角色扮演的相关概念请参阅:腾讯云角色概述

要使用此种方式,您必须在腾讯云访问管理控制台上创建了一个角色,具体创建过程请参阅:腾讯云角色创建

在您拥有角色后,可以通过持久密钥和 roleArn 获取临时凭证,SDK 会自动刷新临时凭证,相关代码如下:

Credential cred = new STSCredential("secretId", "secretKey", "roleArn", "roleSessionName");
  1. 实例角色

有关实例角色的相关概念请参阅:腾讯云实例角色

在您为实例绑定角色后,您可以在实例中访问相关元数据接口获取临时凭证,SDK 会自动刷新临时凭证。相关代码如下:

Credential cred = new CvmRoleCredential();
  1. TKE OIDC凭证

有关 TKE OIDC 凭证的相关示例请参阅:Pod 使用 CAM 对数据库身份验证

OIDCRoleArnProvider provider = new OIDCRoleArnProvider();
Credential credential = provider.getCredentials();

6.凭证提供链

腾讯云 Java SDK 提供了凭证提供链,它会默认以环境变量->配置文件->实例角色->TKE OIDC凭证的顺序尝试获取凭证,并返回第一个获取到的凭证。相关代码如下:

Credential cred = new DefaultCredentialsProvider().getCredentials();

凭证管理详细使用请参阅示例:使用凭证提供链

自定义 SSLSocketFactory 和 X509TrustManager

ClientProfile cpf = new ClientProfile();
cpf.getHttpProfile().setSslSocketFactory(new MySSLSocketFactoryImpl());
cpf.getHttpProfile().setX509TrustManager(new MyX509TrustManagerImpl());

跳过证书校验

ClientProfile cpf = new ClientProfile();
// 创建一个信任所有证书的 TrustManager
TrustManager[] trustAllCerts = new TrustManager[] {
        new X509TrustManager() {
            @Override
            public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {
            }

            @Override
            public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {
            }

            @Override
            public X509Certificate[] getAcceptedIssuers() {
                return new X509Certificate[0];
            }
        }
};
SSLContext sslContext = SSLContext.getInstance("TLS");
sslContext.init(null, trustAllCerts, new java.security.SecureRandom());
SSLSocketFactory sslSocketFactory = sslContext.getSocketFactory();
httpProfile.setSslSocketFactory(sslSocketFactory);
httpProfile.setX509TrustManager((X509TrustManager) trustAllCerts[0]);
httpProfile.setHostnameVerifier(new HostnameVerifier() {
    @Override
    //创建一个不进行主机名验证的 HostnameVerifier
    public boolean verify(String hostname, SSLSession session) {
        return true;
    }
});

自定义 Header

DescribeInstancesRequest示例

ClientProfile cpf = new ClientProfile();
// 自定义 Header 需要使用 v3 签名方式
cpf.setSignMethod(ClientProfile.SIGN_TC3_256);

DescribeInstancesRequest request = new DescribeInstancesRequest();
Map<String, String> header = new HashMap<String, String>();
header.put("X-TC-TraceId","ffe0c072-8a5d-4e17-8887-a8a60252abca");
request.SetHeader(header);

CommonClientRequest示例

ClientProfile cpf = new ClientProfile();
// 自定义 Header 需要使用 v3 签名方式
cpf.setSignMethod(ClientProfile.SIGN_TC3_256);

CommonClientRequest request = new CommonClientRequest();
Map<String, String> header = new HashMap<String, String>();
header.put("X-TC-TraceId","ffe0c072-8a5d-4e17-8887-a8a60252abca");
request.SetHeader(header);

其他问题

版本升级

请注意,从 3.0.x 版本升级到 3.1.x 版本有兼容性问题,对于 Integer 字段的使用修改为了 Long 类型,需要重新编译项目。

证书问题

证书问题通常是客户端环境配置错误导致的。SDK 没有对证书进行操作,依赖的是 Java 运行环境本身的处理。出现证书问题后,可以使用-Djavax.net.debug=ssl开启详细日志辅助判断。

有用户报告使用 IBM JDK 1.8 出现证书报错:javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure,使用 Oracle JDK 后问题消失。

kotlin 问题

部分用户可能使用时遇到报错:java.lang.NoSuchMethodError: kotlin.collections.ArraysKt.copyInto。这是因为 kotlin 运行环境版本较低导致,可尝试升级 kotlin 版本解决。

java.lang.NoSuchMethodError: xxx.setSkipSign 问题

部分用户可能使用时遇到报错:java.lang.NoSuchMethodError: xxx.setSkipSign。这是因为 tencentcloud-sdk-java-common 包和其他产品(如tencentcloud-sdk-java-cvm)的版本不一致导致的。

该问题可能是 pom 中指定的 common 包版本有误,也可能是因为引用了其他第三方 sdk 而间接引用了不匹配的 common 版本导致的。

解决方式是在 pom.xml 中显式指定相同版本的 common 包版本,如

<dependency>
    <groupId>com.tencentcloudapi</groupId>
    <artifactId>tencentcloud-sdk-java-common</artifactId>
    <version>3.1.1000</version>
</dependency>

tencentcloud-sdk-java's People

Contributors

cassiarota avatar chronos-ye avatar dependabot[bot] avatar fxh123 avatar gcguo avatar githubwangbo avatar hs-gray avatar kimii avatar ljz663 avatar louishlz avatar sesky4 avatar tencent-carryfan avatar tencentcloudapi avatar wangmuxian avatar wangyi1310 avatar xrd-713 avatar zhijiehou avatar zqfan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tencentcloud-sdk-java's Issues

timestamp数组类型错误

image
这个类里面的timestamp数组类型不应该是float 应该是int才对 否则返回来的数据会有精度问题

部署到tomcat之后,调用TBP平台的TextProcess接口发送的中文内容,在TBP服务器端接收时是乱码

使用SDK调用TextProcess接口,返回回答的内容一直是 “对不起,我不明白你的意思”

查看返回的响应内容,InputText为乱码。
{"DialogStatus":"","BotName":"","IntentName":"","SlotInfoList":[],"InputText":"??????","ResponseMessage":{"GroupList":[{"ContentType":"text/plain","Url":"","Content":"对不起,我不明白你的意思。"}]},"SessionAttributes":"","ResultType":"5","RequestId":"d9c49373-8908-4623-b2e3-9aeb210f87f3"}

直接将SDK代码添加到工程
在doRequestWithTC3方法中,修改sdk代码,获取requestPayload时,设置为utf-8之后乱码问题可以得到解决
requestPayload = AbstractModel.toJsonString(request).getBytes("utf-8");

不清楚这个是不是SDK代码需要修改,还是说Tomcat服务器需要做一些什么额外的配置。

NPE问题,LogServer中出现空指针问题

main(2)

java.lang.NullPointerException
Attempt to invoke interface method 'java.lang.String java.lang.CharSequence.toString()' on a null object reference
解析原始
1 com.tencent.qcloud.logutils.LogServer.onActivityStarted(LogServer.java:58)
2 android.app.Application.dispatchActivityStarted(Application.java:211)
3 android.app.Activity.onStart(Activity.java:1252)
4 android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:614)
5 android.support.v7.app.AppCompatActivity.onStart(AppCompatActivity.java:178)
6 android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1337)
7 android.app.Activity.performStart(Activity.java:7080)
8 android.app.Activity.performRestart(Activity.java:7155)
9 android.app.ActivityThread.handleWindowVisibility(ActivityThread.java:4161)
10 android.app.ActivityThread.-wrap29(Unknown Source)
11 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1634)
12 android.os.Handler.dispatchMessage(Handler.java:106)
13 android.os.Looper.loop(Looper.java:164)
14 android.app.ActivityThread.main(ActivityThread.java:6530)
15 java.lang.reflect.Method.invoke(Native Method)
16 com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:444)
17 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:812)

TC3-HMAC-SHA256 支持了吗?

上传文件(base64之后)大小为15MB,上传失败,返回的消息说需要 TC3-HMAC-SHA256 签名
目前SDK支持这种签名了么?
设置签名方法为TC3-HMAC-SHA256,报告
TencentCloudSDKException]message:Algorithm TC3-HMAC-SHA256 not available

双螺旋是否支持添加快照盘

sdk是否支持双螺旋添加快照盘,大概看了一下源码暂时么有找到双螺旋模块,目前版本(qcloud-java-sdk:2.0.6)是否支持?

InternalError-An internal error has occurred

Could you please supply an example for speech recognition?
I tried to call this api with an mp3 file input encoded with base64, but failed.
Here is my error info:

[TencentCloudSDKException]message:InternalError-An internal error has occurred. Retry your request, but if the problem persists, contact us. 

And my code:

    private String toBase64(String filePath) {
        try {
            File file = new File(filePath);
            byte[] bytesArray  = new byte[(int) file.length()];
            //read file into bytes[]
            FileInputStream fileInputStream = new FileInputStream(file);
            fileInputStream.read(bytesArray);
            return Base64.encode(bytesArray);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return "";
    }

    private String callASR(){
        Credential cred = new Credential(secretId, secretKey);
        AaiClient client=new AaiClient(cred,"ap-beijing");
        SentenceRecognitionRequest req=new SentenceRecognitionRequest();

        req.setProjectId(0);
        req.setEngSerViceType("8k");
        req.setSubServiceType(2);
        req.setUsrAudioKey("sdk");
        req.setSourceType(1);
        req.setVoiceFormat("mp3");
        req.setData(toBase64("data/fengtian.mp3"));
        req.setDataLen(req.getData().length());

        SentenceRecognitionResponse resp= null;
        try {
            resp = client.SentenceRecognition(req);
        } catch (TencentCloudSDKException e) {
            e.printStackTrace();
        }
        // 输出json格式的字符串回包
        String res=SentenceRecognitionResponse.toJsonString(resp);
        System.out.println(res);
        return res;
    }

代理设置是不是坑人啊

md里面写着这样设置代理
HttpProfile httpProfile = new HttpProfile();
httpProfile.setEndpoint("cvm.tencentcloudapi.com");
httpProfile.setProxyHost("真实代理ip");
httpProfile.setProxyPort(真实代理端口);
实际上压根找不到这个方法?

此SDK ANDROID使用出现 Provider org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl not found

RTjava.lang.Error: javax.xml.datatype.DatatypeConfigurationException: Provider org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl not found
at javax.xml.bind.DatatypeConverterImpl.(DatatypeConverterImpl.java:907)
at javax.xml.bind.DatatypeConverter.initConverter(DatatypeConverter.java:155)
at javax.xml.bind.DatatypeConverter.printHexBinary(DatatypeConverter.java:640)
at com.tencentcloudapi.common.Sign.sha256Hex(Sign.java:107)
at com.tencentcloudapi.common.AbstractClient.doRequestWithTC3(AbstractClient.java:355)
at com.tencentcloudapi.common.AbstractClient.internalRequest(AbstractClient.java:267)
at com.tencentcloudapi.ocr.v20181119.OcrClient.BizLicenseOCR(OcrClient.java:98)
at com.yinet.ocr.BuLicenActivity.onActivityResult(BuLicenActivity.java:85)
at android.app.Activity.dispatchActivityResult(Activity.java:6192)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3575)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3622)
at android.app.ActivityThread.access$1300(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5293)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Caused by: javax.xml.datatype.DatatypeConfigurationException: Provider org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl not found
at javax.xml.datatype.DatatypeFactory.newInstance(DatatypeFactory.java:106)
at javax.xml.bind.DatatypeConverterImpl.(DatatypeConverterImpl.java:905)
at javax.xml.bind.DatatypeConverter.initConverter(DatatypeConverter.java:155) 
at javax.xml.bind.DatatypeConverter.printHexBinary(DatatypeConverter.java:640) 
at com.tencentcloudapi.common.Sign.sha256Hex(Sign.java:107) 
at com.tencentcloudapi.common.AbstractClient.doRequestWithTC3(AbstractClient.java:355) 
at com.tencentcloudapi.common.AbstractClient.internalRequest(AbstractClient.java:267) 
at com.tencentcloudapi.ocr.v20181119.OcrClient.BizLicenseOCR(OcrClient.java:98) 
at com.yinet.ocr.BuLicenActivity.onActivityResult(BuLicenActivity.java:85) 
at android.app.Activity.dispatchActivityResult(Activity.java:6192) 
at android.app.ActivityThread.deliverResults(ActivityThread.java:3575) 
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3622) 
at android.app.ActivityThread.access$1300(ActivityThread.java:153) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5293) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) 
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl" on path: DexPathList[[zip file "/data/app/com.yinet.ocr-2/base.apk"],nativeLibraryDirectories=[/data/app/com.yinet.ocr-2/lib/x86, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at javax.xml.datatype.FactoryFinder.newInstance(FactoryFinder.java:138)
at javax.xml.datatype.FactoryFinder.find(FactoryFinder.java:219)
at javax.xml.datatype.DatatypeFactory.newInstance(DatatypeFactory.java:99)
at javax.xml.bind.DatatypeConverterImpl.(DatatypeConverterImpl.java:905) 
at javax.xml.bind.DatatypeConverter.initConverter(DatatypeConverter.java:155) 
at javax.xml.bind.DatatypeConverter.printHexBinary(DatatypeConverter.java:640) 
at com.tencentcloudapi.common.Sign.sha256Hex(Sign.java:107) 
at com.tencentcloudapi.common.AbstractClient.doRequestWithTC3(AbstractClient.java:355) 
at com.tencentcloudapi.common.AbstractClient.internalRequest(AbstractClient.java:267) 
at com.tencentcloudapi.ocr.v20181119.OcrClient.BizLicenseOCR(OcrClient.java:98) 
at com.yinet.ocr.BuLicenActivity.onActivityResult(BuLicenActivity.java:85) 
at android.app.Activity.dispatchActivityResult(Activity.java:6192) 
at android.app.ActivityThread.deliverResults(ActivityThread.java:3575) 
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3622) 
at android.app.ActivityThread.access$1300(ActivityThread.java:153) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5293) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) 
Suppressed: java.lang.ClassNotFoundException: org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 24 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

如何获取磁盘监控数据

GetMonitorDataRequest类里有定义:
@SerializedName("Instances")
@expose
private Instance[] Instances;

在 api 里:
dimensions.0.name=diskId
dimensions.0.value为块存储ID

最新的 java sdk 里获取监控数据的请求类是否还不支持除了云服务器外的其他监控?

README.md need updating

Hi, the maven dependency info in README.md is too old. The 3.0.1 version is behind your release, for example it doesn't contain the aai module. Please update it.

message:InternalError

[TencentCloudSDKException]message:InternalError.SendAndRecvFail-send and recv sso package fail requestId:6260e7fa-8fbf-4002-a40e-a0dc4d5b43c8
at com.tencentcloudapi.common.AbstractClient.internalRequest(AbstractClient.java:328)
at com.tencentcloudapi.sms.v20190711.SmsClient.SendSms(SmsClient.java:136)
at com.tencentcloudapi.sms.App.main(App.java:52)

DetectAuth接口有问题

参数 Name | 否 | String | 姓名。最长长度32位。中文请使用UTF-8编码。

这里使用UTF-8编码,win10环境,tomcat 设置了 URIEncoding="UTF-8",开发环境设置了 UTF-8,编码时一直,奇数个中文会乱码,偶数个中文不会乱码 ,腾讯对接的几个原厂工程师问了一遍都没有解决,希望这里采用其他方式加密

Java9以及Java10默认不再加载JAXB

Java9开始,默认不再加载JAXB,javax.xml.bind默认不再可用。而你们的pom的dependency里又没有加上jaxb的依赖,导致Runtime类加载异常。
以下是部分堆栈。

java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582) ~[na:na]
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190) ~[na:na]
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499) ~[na:na]
	at com.tencentcloudapi.common.Sign.sign(Sign.java:53) ~[tencentcloud-sdk-java-3.0.1.jar:na]

镜像接口报错

[TencentCloudSDKException]message:java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 17 column 30 requestId:
at com.tencentcloudapi.cvm.v20170312.CvmClient.DescribeImages(CvmClient.java:250)
at cn.cloudbest.iclouds.qcloud.service.impl.QcloudImageServiceImpl.listImages(QcloudImageServiceImpl.java:25)
at cn.cloudbest.iclouds.qcloud.compute.DescribeImageTest.images(DescribeImageTest.java:15)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

DescribeDeviceResponse 中ConnIP问题

版本:3.0.57
接口:查询设备详情,iotCloud.DescribeDevice(request);
错误: .common.exception.TencentCloudSDKException: java.lang.NumberFormatException:Expected an int but was 2531608329 at line 1 column 1399 path $.Response.ConnIP
原因:问题是 ConnIP的数值超过了 Integer.MAX_VALUE

TencentCloudSDKException NumberFormatException

[TencentCloudSDKException]message:java.lang.NumberFormatException: Expected an int but was 2189447945 at line 1 column 182 path $.Response.Devices[0].ConnIP
requestId:
at com.tencentcloudapi.iotcloud.v20180614.IotcloudClient.DescribeDevices(IotcloudClient.java:208)

人脸识别SDK,中文乱码

使用人脸识别SDK时发现创建人员库接口中文乱码,出现问题的版本为

<dependency>
    <groupId>com.tencentcloudapi</groupId>
    <artifactId>tencentcloud-sdk-java</artifactId>
    <version>3.0.111</version>
</dependency>

出现问题的示例代码如下:

Credential cred = new Credential("secretId", "secretKey"); // 执行时替换为真实的秘钥
IaiClient iaiClient = new IaiClient(cred, "ap-shanghai");

String str = "China**";
byte[] b = str.getBytes(StandardCharsets.UTF_8);

// 这里打印出[67, 104, 105, 110, 97, -28, -72, -83, -27, -101, -67],确实是“China**”的UTF-8编码
System.out.println(Arrays.toString(b));

String[] desc = new String[]{"test"};
CreateGroupRequest createGroupRequest = new CreateGroupRequest();
createGroupRequest.setFaceModelVersion("3.0");
createGroupRequest.setGroupExDescriptions(desc);
createGroupRequest.setGroupId("test_test-test");
createGroupRequest.setGroupName(new String(b, StandardCharsets.UTF_8)); // 将GroupName赋为中文字符串
createGroupRequest.setTag("ThisIsATag");
CreateGroupResponse createGroupResponse = iaiClient.CreateGroup(createGroupRequest);

代码执行后,成功返回,但是去控制台上一看,人员库的名字是乱码,如下图:
企业微信截图_15755267406162

Address.getAddressState() return null

com.tencentcloudapi.vpc.v20170312.models.Address.getAddressState()  always return null.

From JSON response, field AddressState should be serialized as AddressStatus

{
    "Response": {
        "TotalCount": 7,
        "AddressSet": [
            {
                "AddressId": "eip-96p3csg5",
                "AddressName": null,
                "AddressIp": "140.143.31.90",
                "AddressStatus": "UNBIND",
                "AddressType": "EIP",
                "InstanceId": null,
                "NetworkInterfaceId": null,
                "PrivateAddressIp": null,
                "IsArrears": false,
                "IsBlocked": false,
                "IsEipDirectConnection": false,
                "CreatedTime": "2018-05-11T16:01:51Z"
            },
           ......
        ],
        "RequestId": "3199c8ba-731f-4369-b95b-808c2d57f177"
    }
}

永远的3.0.1

com.tencentcloudapi tencentcloud-sdk-java 3.0.1

建议README 这里稍微更新一下版本吧 或者标注一个 {version} 也好吧

[TencentCloudSDKException]message:java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 220 requestId:

IotClient 类的AddDevice(AddDeviceRequest req) 方法第83行:rsp = gson.fromJson(this.internalRequest(req, "AddDevice"), type); 在(this.internalRequest(req, "AddDevice")已经正常返回结果的情况下报:
[TencentCloudSDKException]message:java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 220 requestId:
at com.tencentcloudapi.iot.v20180123.IotClient.AddDevice(IotClient.java:85)

关于当前sdk

我们公司有使用腾讯的VOD服务,但是当前这个repo太大了,我们只需要VOD的SDK,但不得不引入整个sdk包,否则只能自己单独删减打包,后续能否单独拆分?

另外,我们也使用“云通讯”服务,可是苦于没找到对应的SDK,我们自己按照自己的需求开发了一部分功能,我们的的TIM SDK(后来在当前repo下发现了一个叫cim。。)全称"TIMJava"由于项目需求和人手不足,只开发了三个功能模块,希望后续可以继续维护,也希望可以得到一些官方的支持。

并且云通讯的社区貌似并不活跃,这个不应该是腾讯开放平台最有能力和最核心的服务吗,但是总觉得一些不足,比如后台不能可视化管理用户以及聊天和关系信息等等,希望可以加强这一服务

java cert error

in some users environment, the java cert is not installed correctly, they might encounter the problem of:

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

an sample java version:

java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)

we should document this and provide some info for these users

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.