Skip to content

Commit 075456b

Browse files
v1.1.104
1 parent 2622cfa commit 075456b

74 files changed

Lines changed: 13572 additions & 6600 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# 更新日志
22

3+
## 2025-12-03
4+
1. 发布Java SDK [1.1.104]
5+
- 新增 MarketingApi 接口,更新模型
6+
37
## 2025-11-05
48
1. 发布Java SDK [1.1.103]
59
- 新增 MarketingApi 接口,更新模型

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
<dependency>
1919
<groupId>com.tencent.ads</groupId>
2020
<artifactId>marketing-api-java-sdk</artifactId>
21-
<version>1.1.103</version>
21+
<version>1.1.104</version>
2222
</dependency>
2323
```
2424

25-
- 或者您也可以手动下载[Java压缩包文件](https://github.com/TencentAd/marketing-api-java-sdk/archive/v1.1.103.zip),解压后可以得到一个Java SDK的源码项目。SDK下载地址:[ams-marketing-sdk-java.zip](https://github.com/TencentAd/marketing-api-java-sdk/archive/v1.1.103.zip)
25+
- 或者您也可以手动下载[Java压缩包文件](https://github.com/TencentAd/marketing-api-java-sdk/archive/v1.1.104.zip),解压后可以得到一个Java SDK的源码项目。SDK下载地址:[ams-marketing-sdk-java.zip](https://github.com/TencentAd/marketing-api-java-sdk/archive/v1.1.104.zip)
2626

2727
1. 解压文件,默认解压到目录ams-marketing-sdk-java。
2828
2. 执行mvn clean install,将包安装到你本地的Maven资源库中。
@@ -35,7 +35,7 @@ mvn clean install
3535
<dependency>
3636
<groupId>com.tencent.ads</groupId>
3737
<artifactId>marketing-api-java-sdk</artifactId>
38-
<version>1.1.103</version>
38+
<version>1.1.104</version>
3939
</dependency>
4040
```
4141

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'idea'
22
apply plugin: 'eclipse'
33

44
group = 'com.tencent.ads'
5-
version = '1.1.103'
5+
version = '1.1.104'
66

77
buildscript {
88
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.tencent.ads",
44
name := "marketing-api-java-sdk",
5-
version := "1.1.103",
5+
version := "1.1.104",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>marketing-api-java-sdk</artifactId>
66
<packaging>jar</packaging>
77
<name>com.tencent.ads</name>
8-
<version>1.1.103</version>
8+
<version>1.1.104</version>
99
<url>https://developers.e.qq.com/docs/start</url>
1010
<description>Tencent Ads Mareting-Api Java Sdk</description>
1111

src/main/java/com/tencent/ads/TencentAds.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class TencentAds extends CustomApp {
1414

1515
private static String basePath = "https://sandbox-api.e.qq.com/v1.3";
1616

17-
private static final String SDK_VERSION = "1.1.103";
17+
private static final String SDK_VERSION = "1.1.104";
1818

1919
private TencentAds() {}
2020

Lines changed: 215 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,215 @@
1+
/*
2+
* Marketing API
3+
* Marketing API
4+
*
5+
* OpenAPI spec version: 3.0
6+
*
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*/
12+
13+
package com.tencent.ads.api.v3;
14+
15+
import com.google.gson.reflect.TypeToken;
16+
import com.tencent.ads.ApiCallback;
17+
import com.tencent.ads.ApiClient;
18+
import com.tencent.ads.ApiException;
19+
import com.tencent.ads.ApiResponse;
20+
import com.tencent.ads.Configuration;
21+
import com.tencent.ads.Pair;
22+
import com.tencent.ads.ProgressRequestBody;
23+
import com.tencent.ads.ProgressResponseBody;
24+
import com.tencent.ads.model.v3.MuseAudiosGetRequest;
25+
import com.tencent.ads.model.v3.MuseAudiosGetResponse;
26+
import java.io.IOException;
27+
import java.lang.reflect.Type;
28+
import java.util.ArrayList;
29+
import java.util.HashMap;
30+
import java.util.List;
31+
import java.util.Map;
32+
33+
public class MuseAudiosApi {
34+
private ApiClient apiClient;
35+
36+
public MuseAudiosApi() {
37+
this(Configuration.getV3DefaultApiClient());
38+
}
39+
40+
public MuseAudiosApi(ApiClient apiClient) {
41+
this.apiClient = apiClient;
42+
}
43+
44+
public ApiClient getApiClient() {
45+
return apiClient;
46+
}
47+
48+
public void setApiClient(ApiClient apiClient) {
49+
this.apiClient = apiClient;
50+
}
51+
52+
/**
53+
* Build call for museAudiosGet
54+
*
55+
* @param data (required)
56+
* @param progressListener Progress listener
57+
* @param progressRequestListener Progress request listener
58+
* @return Call to execute
59+
* @throws ApiException If fail to serialize the request body object
60+
*/
61+
public com.squareup.okhttp.Call museAudiosGetCall(
62+
MuseAudiosGetRequest data,
63+
final ProgressResponseBody.ProgressListener progressListener,
64+
final ProgressRequestBody.ProgressRequestListener progressRequestListener,
65+
Pair... headerPair)
66+
throws ApiException {
67+
68+
Object localVarPostBody = data;
69+
70+
// create path and map variables
71+
String localVarPath = "/muse_audios/get";
72+
73+
List<Pair> localVarQueryParams = new ArrayList<Pair>();
74+
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
75+
76+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
77+
78+
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
79+
80+
final String[] localVarAccepts = {"application/json"};
81+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
82+
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
83+
84+
final String[] localVarContentTypes = {"application/json", "application/xml"};
85+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
86+
localVarHeaderParams.put("Content-Type", localVarContentType);
87+
88+
if (headerPair != null && headerPair.length > 0) {
89+
for (int i = 0; i < headerPair.length; i++) {
90+
localVarHeaderParams.put(headerPair[i].getName(), headerPair[i].getValue());
91+
}
92+
}
93+
94+
if (progressListener != null) {
95+
apiClient
96+
.getHttpClient()
97+
.networkInterceptors()
98+
.add(
99+
new com.squareup.okhttp.Interceptor() {
100+
@Override
101+
public com.squareup.okhttp.Response intercept(
102+
com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
103+
com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
104+
return originalResponse
105+
.newBuilder()
106+
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
107+
.build();
108+
}
109+
});
110+
}
111+
112+
String[] localVarAuthNames = new String[] {"accessToken", "nonce", "timestamp"};
113+
return apiClient.buildCall(
114+
localVarPath,
115+
"POST",
116+
localVarQueryParams,
117+
localVarCollectionQueryParams,
118+
localVarPostBody,
119+
localVarHeaderParams,
120+
localVarFormParams,
121+
localVarAuthNames,
122+
progressRequestListener);
123+
}
124+
125+
@SuppressWarnings("rawtypes")
126+
private com.squareup.okhttp.Call museAudiosGetValidateBeforeCall(
127+
MuseAudiosGetRequest data,
128+
final ProgressResponseBody.ProgressListener progressListener,
129+
final ProgressRequestBody.ProgressRequestListener progressRequestListener,
130+
Pair... headerPair)
131+
throws ApiException {
132+
133+
// verify the required parameter 'data' is set
134+
if (data == null) {
135+
throw new ApiException(
136+
"Missing the required parameter 'data' when calling museAudiosGet(Async)");
137+
}
138+
139+
com.squareup.okhttp.Call call =
140+
museAudiosGetCall(data, progressListener, progressRequestListener, headerPair);
141+
return call;
142+
}
143+
144+
/**
145+
* 获取妙思版权音频列表
146+
*
147+
* @param data (required)
148+
* @return MuseAudiosGetResponse
149+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
150+
* response body
151+
*/
152+
public MuseAudiosGetResponse museAudiosGet(MuseAudiosGetRequest data, Pair... headerPair)
153+
throws ApiException {
154+
ApiResponse<MuseAudiosGetResponse> resp = museAudiosGetWithHttpInfo(data, headerPair);
155+
return resp.getData();
156+
}
157+
158+
/**
159+
* 获取妙思版权音频列表
160+
*
161+
* @param data (required)
162+
* @return ApiResponse&lt;MuseAudiosGetResponse&gt;
163+
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
164+
* response body
165+
*/
166+
public ApiResponse<MuseAudiosGetResponse> museAudiosGetWithHttpInfo(
167+
MuseAudiosGetRequest data, Pair... headerPair) throws ApiException {
168+
com.squareup.okhttp.Call call = museAudiosGetValidateBeforeCall(data, null, null, headerPair);
169+
Type localVarReturnType = new TypeToken<MuseAudiosGetResponse>() {}.getType();
170+
return apiClient.execute(call, localVarReturnType);
171+
}
172+
173+
/**
174+
* 获取妙思版权音频列表 (asynchronously)
175+
*
176+
* @param data (required)
177+
* @param callback The callback to be executed when the API call finishes
178+
* @return The request call
179+
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
180+
*/
181+
public com.squareup.okhttp.Call museAudiosGetAsync(
182+
MuseAudiosGetRequest data,
183+
final ApiCallback<MuseAudiosGetResponse> callback,
184+
Pair... headerPair)
185+
throws ApiException {
186+
187+
ProgressResponseBody.ProgressListener progressListener = null;
188+
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
189+
190+
if (callback != null) {
191+
progressListener =
192+
new ProgressResponseBody.ProgressListener() {
193+
@Override
194+
public void update(long bytesRead, long contentLength, boolean done) {
195+
callback.onDownloadProgress(bytesRead, contentLength, done);
196+
}
197+
};
198+
199+
progressRequestListener =
200+
new ProgressRequestBody.ProgressRequestListener() {
201+
@Override
202+
public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
203+
callback.onUploadProgress(bytesWritten, contentLength, done);
204+
}
205+
};
206+
}
207+
208+
com.squareup.okhttp.Call call =
209+
museAudiosGetValidateBeforeCall(
210+
data, progressListener, progressRequestListener, headerPair);
211+
Type localVarReturnType = new TypeToken<MuseAudiosGetResponse>() {}.getType();
212+
apiClient.executeAsync(call, localVarReturnType, callback);
213+
return call;
214+
}
215+
}

0 commit comments

Comments
 (0)