Skip to content

Commit 55e82fe

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@e9504e85.
1 parent bf4872d commit 55e82fe

File tree

11 files changed

+1237
-7
lines changed

11 files changed

+1237
-7
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ All endpoints in the API follow REST conventions and use standard HTTP methods.
1010

1111
See the next sections for more information on how to use the Segment Public API Java SDK.
1212

13-
Latest API and SDK version: 58.4.0
13+
Latest API and SDK version: 58.5.0
1414

1515
## Requirements
1616

@@ -28,7 +28,7 @@ Add this dependency to your project's POM:
2828
<dependency>
2929
<groupId>com.segment.publicapi</groupId>
3030
<artifactId>segment-publicapi</artifactId>
31-
<version>58.4.0</version>
31+
<version>58.5.0</version>
3232
<scope>compile</scope>
3333
</dependency>
3434
```
@@ -44,7 +44,7 @@ Add this dependency to your project's build file:
4444
}
4545
4646
dependencies {
47-
implementation "com.segment.publicapi:segment-publicapi:58.4.0"
47+
implementation "com.segment.publicapi:segment-publicapi:58.5.0"
4848
}
4949
```
5050

@@ -58,7 +58,7 @@ mvn clean package
5858

5959
Then manually install the following JARs:
6060

61-
* `target/segment-publicapi-58.4.0.jar`
61+
* `target/segment-publicapi-58.5.0.jar`
6262
* `target/lib/*.jar`
6363

6464
You are now ready to start making calls to Public API!

docs/CustomerInsightsApi.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# CustomerInsightsApi
2+
3+
All URIs are relative to *https://api.segmentapis.com*
4+
5+
| Method | HTTP request | Description |
6+
|------------- | ------------- | -------------|
7+
| [**createDownload**](CustomerInsightsApi.md#createDownload) | **POST** /customer-insights/download | Create Download |
8+
9+
10+
11+
## Operation: createDownload
12+
13+
> CreateDownload200Response createDownload(createDownloadAlphaInput)
14+
15+
Create Download
16+
17+
Create Customer Insights Presigned URLs The rate limit for this endpoint is 1 requests per minute, which is lower than the default due to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP status code with headers indicating the limit parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
18+
19+
### Example
20+
21+
```java
22+
// Import classes:
23+
import com.segment.publicapi.ApiClient;
24+
import com.segment.publicapi.ApiException;
25+
import com.segment.publicapi.Configuration;
26+
import com.segment.publicapi.auth.*;
27+
import com.segment.publicapi.models.*;
28+
import com.segment.publicapi.api.CustomerInsightsApi;
29+
30+
public class Example {
31+
public static void main(String[] args) {
32+
ApiClient defaultClient = Configuration.getDefaultApiClient();
33+
34+
// Configure HTTP bearer authorization: token
35+
HttpBearerAuth token = (HttpBearerAuth) defaultClient.getAuthentication("token");
36+
token.setBearerToken("BEARER TOKEN");
37+
38+
CustomerInsightsApi apiInstance = new CustomerInsightsApi(defaultClient);
39+
CreateDownloadAlphaInput createDownloadAlphaInput = new CreateDownloadAlphaInput(); // CreateDownloadAlphaInput |
40+
try {
41+
CreateDownload200Response result = apiInstance.createDownload(createDownloadAlphaInput);
42+
System.out.println(result);
43+
} catch (ApiException e) {
44+
System.err.println("Exception when calling CustomerInsightsApi#createDownload");
45+
System.err.println("Status code: " + e.getCode());
46+
System.err.println("Reason: " + e.getResponseBody());
47+
System.err.println("Response headers: " + e.getResponseHeaders());
48+
e.printStackTrace();
49+
}
50+
}
51+
}
52+
```
53+
54+
### Parameters
55+
56+
57+
| Name | Type | Description | Notes |
58+
|------------- | ------------- | ------------- | -------------|
59+
| **createDownloadAlphaInput** | [**CreateDownloadAlphaInput**](CreateDownloadAlphaInput.md)| | |
60+
61+
### Return type
62+
63+
[**CreateDownload200Response**](CreateDownload200Response.md)
64+
65+
### Authorization
66+
67+
[token](../README.md#token)
68+
69+
### HTTP request headers
70+
71+
- **Content-Type**: application/vnd.segment.v1alpha+json
72+
- **Accept**: application/vnd.segment.v1alpha+json, application/json
73+
74+
75+
### HTTP response details
76+
| Status code | Description | Response headers |
77+
|-------------|-------------|------------------|
78+
| **200** | OK | - |
79+
| **404** | Resource not found | - |
80+
| **422** | Validation failure | - |
81+
| **429** | Too many requests | - |
82+

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>segment-publicapi</artifactId>
66
<packaging>jar</packaging>
77
<name>segment-publicapi</name>
8-
<version>58.4.0</version>
8+
<version>58.5.0</version>
99
<url>https://segment.com/docs/api/public-api/</url>
1010
<description>Segment Public API</description>
1111
<scm>

src/main/java/com/segment/publicapi/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ private void init() {
123123
json = new JSON();
124124

125125
// Set default User-Agent.
126-
setUserAgent("Public API SDK 58.4.0 (Java)");
126+
setUserAgent("Public API SDK 58.5.0 (Java)");
127127

128128
authentications = new HashMap<String, Authentication>();
129129
}

src/main/java/com/segment/publicapi/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
package com.segment.publicapi;
1313

1414
public class Configuration {
15-
public static final String VERSION = "58.4.0";
15+
public static final String VERSION = "58.5.0";
1616

1717
private static ApiClient defaultApiClient = new ApiClient();
1818

src/main/java/com/segment/publicapi/JSON.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,15 @@ private static Class getClassByDiscriminator(
267267
gsonBuilder.registerTypeAdapterFactory(
268268
new com.segment.publicapi.models.CreateDestinationV1Output
269269
.CustomTypeAdapterFactory());
270+
gsonBuilder.registerTypeAdapterFactory(
271+
new com.segment.publicapi.models.CreateDownload200Response
272+
.CustomTypeAdapterFactory());
273+
gsonBuilder.registerTypeAdapterFactory(
274+
new com.segment.publicapi.models.CreateDownloadAlphaInput
275+
.CustomTypeAdapterFactory());
276+
gsonBuilder.registerTypeAdapterFactory(
277+
new com.segment.publicapi.models.CreateDownloadAlphaOutput
278+
.CustomTypeAdapterFactory());
270279
gsonBuilder.registerTypeAdapterFactory(
271280
new com.segment.publicapi.models.CreateEdgeFunctions200Response
272281
.CustomTypeAdapterFactory());
@@ -601,6 +610,8 @@ private static Class getClassByDiscriminator(
601610
gsonBuilder.registerTypeAdapterFactory(
602611
new com.segment.publicapi.models.DisableEdgeFunctionsAlphaOutput
603612
.CustomTypeAdapterFactory());
613+
gsonBuilder.registerTypeAdapterFactory(
614+
new com.segment.publicapi.models.Download.CustomTypeAdapterFactory());
604615
gsonBuilder.registerTypeAdapterFactory(
605616
new com.segment.publicapi.models.Echo200Response.CustomTypeAdapterFactory());
606617
gsonBuilder.registerTypeAdapterFactory(

0 commit comments

Comments
 (0)