https://github.com/lunasaw/tencent-spring-boot-starter
tencent-spring-boot-starter 腾讯开放平台Api调用集成
https://github.com/lunasaw/tencent-spring-boot-starter
api spring-starters tencent
Last synced: 4 months ago
JSON representation
tencent-spring-boot-starter 腾讯开放平台Api调用集成
- Host: GitHub
- URL: https://github.com/lunasaw/tencent-spring-boot-starter
- Owner: lunasaw
- Created: 2021-03-27T11:37:18.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-20T15:39:28.000Z (almost 5 years ago)
- Last Synced: 2025-09-06T13:42:32.036Z (9 months ago)
- Topics: api, spring-starters, tencent
- Language: HTML
- Homepage: https://czy1024.github.io/tencent-spring-boot-starter
- Size: 1.02 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tencent-spring-boot-starter
[tencent-spring-boot-starter-tencent](https://github.com/lunasaw/tencent-spring-boot-starter)
[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]
[![LinkedIn][linkedin-shield]][linkedin-url]
腾讯开放平台工具
腾讯开放平台工具 springboot starter
探索本项目的文档 »
查看Demo
·
报告Bug
·
提出新特性
## 日志
增加语音识别相关接口,包括语音合成,实时识别等
增加微信支付Api接口
- 超时30分钟自动关闭订单
- Mq队列处理
增加腾讯地图Api接口
增加腾讯人脸识别等Api接口
## 目录
- [安装步骤](#安装步骤)
- [文件目录说明](#文件目录说明)
- [文档](#文档)
- [作者](#作者)
###### **安装步骤**
1. Get a free API Key at [https://console.cloud.tencent.com](https://console.cloud.tencent.com)
3. Clone the repo
```sh
git clone https://github.com/lunasaw/tencent-spring-boot-starter.git
```
直接使用引入项目依赖
```xml
io.github.lunasaw
tencent-spring-boot-starter-tencent
2.2.3-RELEASE
```
### 文档
[文档链接](https://lunasaw.github.io/tencent-spring-boot-starter/)
在配置文件application.properties加入可选配置
```text
luna:
ten:
# 腾讯地图api
mapKey: xxx
# 腾讯api
secretId: xxx
secretKey: xxx
# 腾讯市场api
skyEyeSecretid: xxx
skyEyeSecretkey: xxx
#微信支付信息配置
wechat:
# 应用ID
appId: xxx
# 公钥
partner: xxx
# 私钥
partnerKey: xxx
# 异步通知URL
notifyUrl: xxx
mq:
pay:
exchange: exchange.order
queue: queue.order
routing: queue.order
```
引用示例 若采用SpringBoot构建项目可通过将第三方包中的TencentConfigValue,TencentPayConfigValue通过Spring配置文件注入Spring管理
需在properties或者yml配置文件中配置相应key
若非Spring项目可直接通过调用静态APi传入key和id进行调用
```java
@RunWith(SpringRunner.class)
@SpringBootTest
public class TencentApiTest {
@Autowired
private TencentPayMqConfigValue tencentPayMqConfigValue;
@Autowired
private TencentConfigValue tencentConfigValue;
@Test
public void atest() {
System.out.println(tencentPayMqConfigValue.getExchange());
System.out.println(tencentConfigValue.getSecretid());
JSONObject jsonObject = TencentMarketApi.checkIdByLuna(tencentConfigValue.getSkyEyeSecretid(), tencentConfigValue.getSkyEyeSecretkey(), "陈章月", "500384199911072412");
System.out.println(JSON.toJSONString(jsonObject));
}
}
```
结果

### 文件目录说明
eg:
```
./
├── README.md
├── _config.yml
├── logo
│ └── tencent-logo.png
├── pom.xml
├── src
│ ├── main
│ │ ├── java
│ │ │ └── com
│ │ │ └── luna
│ │ │ └── tencent
│ │ │ ├── api
│ │ │ │ ├── TencentAuthAPI.java
│ │ │ │ ├── TencentCloudAPITC3.java
│ │ │ │ ├── TencentConstant.java
│ │ │ │ ├── TencentFaceApi.java
│ │ │ │ ├── TencentGroupPersonApi.java
│ │ │ │ ├── TencentHotWordsApi.java
│ │ │ │ ├── TencentMapApi.java
│ │ │ │ ├── TencentMarketApi.java
│ │ │ │ ├── TencentMessageApi.java
│ │ │ │ ├── TencentRealTimeVoiceApi.java
│ │ │ │ └── TencntVoiceApi.java
│ │ │ ├── config
│ │ │ │ ├── TencentApiAutoConfiguration.java
│ │ │ │ ├── TencentPayAutoConfiguration.java
│ │ │ │ └── TencentPayQueueConfiguration.java
│ │ │ ├── dto
│ │ │ │ ├── error
│ │ │ │ │ └── ErrorDTO.java
│ │ │ │ ├── face
│ │ │ │ │ └── FaceInfosDTO.java
│ │ │ │ ├── group
│ │ │ │ │ ├── GroupExDescriptionInfoDTO.java
│ │ │ │ │ └── PersonExDescriptionInfoDTO.java
│ │ │ │ ├── hotword
│ │ │ │ │ ├── HotWordDTO.java
│ │ │ │ │ └── VocabDTO.java
│ │ │ │ ├── map
│ │ │ │ │ ├── AddressComponentDTO.java
│ │ │ │ │ ├── AddressResultDTO.java
│ │ │ │ │ ├── Ip2AddressResultDTO.java
│ │ │ │ │ ├── KeyWordSearchResultDTO.java
│ │ │ │ │ └── LocationDTO.java
│ │ │ │ └── voice
│ │ │ │ ├── VoiceFastIdentifyDTO.java
│ │ │ │ └── VoiceOneMinutesDTO.java
│ │ │ ├── pay
│ │ │ │ ├── api
│ │ │ │ │ └── TencentPayApi.java
│ │ │ │ ├── constant
│ │ │ │ │ └── TencentPayConstant.java
│ │ │ │ ├── dto
│ │ │ │ │ ├── CloseOderResultDTO.java
│ │ │ │ │ ├── NotifyResultDTO.java
│ │ │ │ │ └── QueryResultDTO.java
│ │ │ │ ├── entity
│ │ │ │ │ └── TencentPayEntity.java
│ │ │ │ ├── mq
│ │ │ │ │ ├── DelayMessageListener.java
│ │ │ │ │ └── OrderMessageListener.java
│ │ │ │ └── nortify
│ │ │ │ ├── TencentPayNotifyController.java
│ │ │ │ └── TencentPayNotifyService.java
│ │ │ ├── properties
│ │ │ │ ├── TencentApiConfigProperties.java
│ │ │ │ ├── TencentPayConfigProperties.java
│ │ │ │ └── TencentPayMqConfigProperties.java
│ │ │ └── response
│ │ │ ├── card
│ │ │ │ ├── IdCardAndBankCardCheckInfoResponse.java
│ │ │ │ ├── IdCardCheckInfoResponse.java
│ │ │ │ ├── IdCardOcrResponse.java
│ │ │ │ └── IdCardPictureCheckInfoResponse.java
│ │ │ ├── group
│ │ │ │ ├── AddFaceResultResponse.java
│ │ │ │ ├── CandidateResponse.java
│ │ │ │ ├── CheckPersonInGroupResponse.java
│ │ │ │ ├── CompareFaceResponse.java
│ │ │ │ ├── GroupCandidateResponse.java
│ │ │ │ ├── PersonBaseInfoResponse.java
│ │ │ │ ├── PersonGroupInfoResponse.java
│ │ │ │ └── ResultsReturnsByGroupResponse.java
│ │ │ ├── message
│ │ │ │ ├── MobileCheckInfoResponse.java
│ │ │ │ └── SendStatusDTO.java
│ │ │ └── voice
│ │ │ ├── FlashRecognitionResponse.java
│ │ │ ├── SpeechRecognitionResponse.java
│ │ │ ├── SpeechRecognitionResponseResult.java
│ │ │ ├── VoiceIdentifyResponse.java
│ │ │ └── VoiceOneMinutesResponse.java
│ │ └── resources
│ │ ├── META-INF
│ │ │ └── spring.factories
│ │ ├── application-pro.yml
│ │ └── log
│ │ └── logback.xml
│ └── test
│ └── java
```
### 作者
luna
email Keyluna@126.com qq:1173288254
*您也可以在贡献者名单中参看所有参与该项目的开发者。*
### 版权说明
该项目签署了MIT 授权许可,详情请参阅 [LICENSE.txt](https://github.com/lunasaw/luna-commons/blob/master/LICENSE)
### 鸣谢[]()
- [tencent]()
- [rabbitmq]()
[your-project-path]:lunasaw/tencent-spring-boot-starter
[contributors-shield]: https://img.shields.io/github/contributors/lunasaw/tencent-spring-boot-starter.svg?style=flat-square
[contributors-url]: https://github.com/lunasaw/tencent-spring-boot-starter/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/lunasaw/tencent-spring-boot-starter.svg?style=flat-square
[forks-url]: https://github.com/lunasaw/tencent-spring-boot-starter/network/members
[stars-shield]: https://img.shields.io/github/stars/lunasaw/tencent-spring-boot-starter.svg?style=flat-square
[stars-url]: https://github.com/lunasaw/tencent-spring-boot-starter/stargazers
[issues-shield]: https://img.shields.io/github/issues/lunasaw/tencent-spring-boot-starter.svg?style=flat-square
[issues-url]: https://img.shields.io/github/issues/lunasaw/tencent-spring-boot-starter.svg
[license-shield]: https://img.shields.io/github/license/lunasaw/tencent-spring-boot-starter.svg?style=flat-square
[license-url]: https://github.com/lunasaw/tencent-spring-boot-starter/blob/master/LICENSE.txt
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=flat-square&logo=linkedin&colorB=555
[linkedin-url]: https://linkedin.com/in/tencent-spring-boot-starter