Skip to content

Commit 22469d2

Browse files
author
APIs and Common Services team
committed
Automated SDK update
This updates the SDK from internal repo commit segmentio/public-api@b5385c69.
1 parent 1a5dfcc commit 22469d2

File tree

9 files changed

+825
-7
lines changed

9 files changed

+825
-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: 61.1.4
13+
Latest API and SDK version: 61.2.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>61.1.4</version>
31+
<version>61.2.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:61.1.4"
47+
implementation "com.segment.publicapi:segment-publicapi:61.2.0"
4848
}
4949
```
5050

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

5959
Then manually install the following JARs:
6060

61-
* `target/segment-publicapi-61.1.4.jar`
61+
* `target/segment-publicapi-61.2.0.jar`
6262
* `target/lib/*.jar`
6363

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

docs/ActivationsApi.md

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ All URIs are relative to *https://api.segmentapis.com*
99
| [**getActivationFromAudience**](ActivationsApi.md#getActivationFromAudience) | **GET** /spaces/{spaceId}/audiences/{audienceId}/activations/{id} | Get Activation from Audience |
1010
| [**listActivationsFromAudience**](ActivationsApi.md#listActivationsFromAudience) | **GET** /spaces/{spaceId}/audiences/{audienceId}/activations | List Activations from Audience |
1111
| [**listDestinationsFromAudience**](ActivationsApi.md#listDestinationsFromAudience) | **GET** /spaces/{spaceId}/audiences/{audienceId}/destination-connections | List Destinations from Audience |
12+
| [**listSupportedDestinationsFromAudience**](ActivationsApi.md#listSupportedDestinationsFromAudience) | **GET** /spaces/{spaceId}/audienceType/{audienceType}/supported-destinations | List Supported Destinations from Audience |
1213
| [**removeActivationFromAudience**](ActivationsApi.md#removeActivationFromAudience) | **DELETE** /spaces/{spaceId}/audiences/{audienceId}/activations/{id} | Remove Activation from Audience |
1314
| [**updateActivationForAudience**](ActivationsApi.md#updateActivationForAudience) | **PATCH** /spaces/{spaceId}/audiences/{audienceId}/activations/{id} | Update Activation for Audience |
1415

@@ -401,6 +402,85 @@ public class Example {
401402
| **429** | Too many requests | - |
402403

403404

405+
## Operation: listSupportedDestinationsFromAudience
406+
407+
> ListSupportedDestinationsFromAudience200Response listSupportedDestinationsFromAudience(spaceId, audienceType, slug, actionId)
408+
409+
List Supported Destinations from Audience
410+
411+
Lists all Supported Destinations for this audience type that can be activated. • This endpoint is in **Alpha** testing. Please submit any feedback by sending an email to friends@segment.com. • In order to successfully call this endpoint, the specified Workspace needs to have the Audience feature enabled. Please reach out to your customer success manager for more information. • When called, this endpoint may generate the &#x60;Supported Destinations Listed For Audience&#x60; event in the [audit trail](/tag/Audit-Trail). The rate limit for this endpoint is 60 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.
412+
413+
### Example
414+
415+
```java
416+
// Import classes:
417+
import com.segment.publicapi.ApiClient;
418+
import com.segment.publicapi.ApiException;
419+
import com.segment.publicapi.Configuration;
420+
import com.segment.publicapi.auth.*;
421+
import com.segment.publicapi.models.*;
422+
import com.segment.publicapi.api.ActivationsApi;
423+
424+
public class Example {
425+
public static void main(String[] args) {
426+
ApiClient defaultClient = Configuration.getDefaultApiClient();
427+
428+
// Configure HTTP bearer authorization: token
429+
HttpBearerAuth token = (HttpBearerAuth) defaultClient.getAuthentication("token");
430+
token.setBearerToken("BEARER TOKEN");
431+
432+
ActivationsApi apiInstance = new ActivationsApi(defaultClient);
433+
String spaceId = "spa_9aQ1Lj62S4bomZKLF4DPqW"; // String |
434+
String audienceType = "USERS"; // String |
435+
String slug = "slug_example"; // String | Optional destination slug to filter results. This parameter exists in alpha.
436+
String actionId = "actionId_example"; // String | Optional destination action id to filter results. This parameter exists in alpha.
437+
try {
438+
ListSupportedDestinationsFromAudience200Response result = apiInstance.listSupportedDestinationsFromAudience(spaceId, audienceType, slug, actionId);
439+
System.out.println(result);
440+
} catch (ApiException e) {
441+
System.err.println("Exception when calling ActivationsApi#listSupportedDestinationsFromAudience");
442+
System.err.println("Status code: " + e.getCode());
443+
System.err.println("Reason: " + e.getResponseBody());
444+
System.err.println("Response headers: " + e.getResponseHeaders());
445+
e.printStackTrace();
446+
}
447+
}
448+
}
449+
```
450+
451+
### Parameters
452+
453+
454+
| Name | Type | Description | Notes |
455+
|------------- | ------------- | ------------- | -------------|
456+
| **spaceId** | **String**| | |
457+
| **audienceType** | **String**| | |
458+
| **slug** | **String**| Optional destination slug to filter results. This parameter exists in alpha. | [optional] |
459+
| **actionId** | **String**| Optional destination action id to filter results. This parameter exists in alpha. | [optional] |
460+
461+
### Return type
462+
463+
[**ListSupportedDestinationsFromAudience200Response**](ListSupportedDestinationsFromAudience200Response.md)
464+
465+
### Authorization
466+
467+
[token](../README.md#token)
468+
469+
### HTTP request headers
470+
471+
- **Content-Type**: Not defined
472+
- **Accept**: application/vnd.segment.v1alpha+json, application/json
473+
474+
475+
### HTTP response details
476+
| Status code | Description | Response headers |
477+
|-------------|-------------|------------------|
478+
| **200** | OK | - |
479+
| **404** | Resource not found | - |
480+
| **422** | Validation failure | - |
481+
| **429** | Too many requests | - |
482+
483+
404484
## Operation: removeActivationFromAudience
405485

406486
> RemoveActivationFromAudience200Response removeActivationFromAudience(spaceId, audienceId, id)

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>61.1.4</version>
8+
<version>61.2.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 61.1.4 (Java)");
126+
setUserAgent("Public API SDK 61.2.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 = "61.1.4";
15+
public static final String VERSION = "61.2.0";
1616

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

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,6 +1253,12 @@ private static Class getClassByDiscriminator(
12531253
gsonBuilder.registerTypeAdapterFactory(
12541254
new com.segment.publicapi.models.ListSubscriptionsFromDestinationAlphaOutput
12551255
.CustomTypeAdapterFactory());
1256+
gsonBuilder.registerTypeAdapterFactory(
1257+
new com.segment.publicapi.models.ListSupportedDestinationsFromAudience200Response
1258+
.CustomTypeAdapterFactory());
1259+
gsonBuilder.registerTypeAdapterFactory(
1260+
new com.segment.publicapi.models.ListSupportedDestinationsFromAudienceAlphaOutput
1261+
.CustomTypeAdapterFactory());
12561262
gsonBuilder.registerTypeAdapterFactory(
12571263
new com.segment.publicapi.models.ListSuppressions200Response
12581264
.CustomTypeAdapterFactory());

0 commit comments

Comments
 (0)