Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'com.docusign:iam-sdk:1.0.0-beta.2'
implementation 'com.docusign:iam-sdk:1.0.0-beta.3'
```

Maven:
```xml
<dependency>
<groupId>com.docusign</groupId>
<artifactId>iam-sdk</artifactId>
<version>1.0.0-beta.2</version>
<version>1.0.0-beta.3</version>
</dependency>
```

Expand Down Expand Up @@ -124,7 +124,7 @@ public class Application {
public static void main(String[] args) throws OAuthErrorResponse, Exception {

IamClient sdk = IamClient.builder()
.accessToken("<YOUR_ACCESS_TOKEN_HERE>")
.accessToken(System.getenv().getOrDefault("ACCESS_TOKEN", ""))
.build();

GetUserInfoResponse res = sdk.auth().getUserInfo()
Expand Down Expand Up @@ -383,8 +383,8 @@ public class Application {
GetTokenFromConfidentialAuthCodeResponse res = sdk.auth().getTokenFromConfidentialAuthCode()
.request(req)
.security(GetTokenFromConfidentialAuthCodeSecurity.builder()
.clientId("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79")
.secretKey("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI")
.clientId(System.getenv().getOrDefault("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79", ""))
.secretKey(System.getenv().getOrDefault("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI", ""))
.build())
.retryConfig(RetryConfig.builder()
.backoff(BackoffStrategy.builder()
Expand Down Expand Up @@ -443,8 +443,8 @@ public class Application {
GetTokenFromConfidentialAuthCodeResponse res = sdk.auth().getTokenFromConfidentialAuthCode()
.request(req)
.security(GetTokenFromConfidentialAuthCodeSecurity.builder()
.clientId("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79")
.secretKey("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI")
.clientId(System.getenv().getOrDefault("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79", ""))
.secretKey(System.getenv().getOrDefault("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI", ""))
.build())
.call();

Expand Down Expand Up @@ -494,8 +494,8 @@ public class Application {
GetTokenFromConfidentialAuthCodeResponse res = sdk.auth().getTokenFromConfidentialAuthCode()
.request(req)
.security(GetTokenFromConfidentialAuthCodeSecurity.builder()
.clientId("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79")
.secretKey("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI")
.clientId(System.getenv().getOrDefault("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79", ""))
.secretKey(System.getenv().getOrDefault("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI", ""))
.build())
.call();

Expand Down Expand Up @@ -546,8 +546,8 @@ public class Application {
GetTokenFromConfidentialAuthCodeResponse res = sdk.auth().getTokenFromConfidentialAuthCode()
.request(req)
.security(GetTokenFromConfidentialAuthCodeSecurity.builder()
.clientId("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79")
.secretKey("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI")
.clientId(System.getenv().getOrDefault("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79", ""))
.secretKey(System.getenv().getOrDefault("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI", ""))
.build())
.call();

Expand Down Expand Up @@ -586,8 +586,8 @@ public class Application {
GetTokenFromConfidentialAuthCodeResponse res = sdk.auth().getTokenFromConfidentialAuthCode()
.request(req)
.security(GetTokenFromConfidentialAuthCodeSecurity.builder()
.clientId("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79")
.secretKey("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI")
.clientId(System.getenv().getOrDefault("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79", ""))
.secretKey(System.getenv().getOrDefault("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI", ""))
.build())
.call();

Expand Down Expand Up @@ -625,8 +625,8 @@ public class Application {
GetTokenFromConfidentialAuthCodeResponse res = sdk.auth().getTokenFromConfidentialAuthCode()
.request(req)
.security(GetTokenFromConfidentialAuthCodeSecurity.builder()
.clientId("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79")
.secretKey("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI")
.clientId(System.getenv().getOrDefault("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79", ""))
.secretKey(System.getenv().getOrDefault("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI", ""))
.build())
.serverURL("https://account.docusign.com")
.call();
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,14 @@ Based on:
### Generated
- [java v1.0.0-beta.2] .
### Releases
- [Maven Central v1.0.0-beta.2] https://central.sonatype.com/artifact/com.docusign/iam-sdk/1.0.0-beta.2 - .
- [Maven Central v1.0.0-beta.2] https://central.sonatype.com/artifact/com.docusign/iam-sdk/1.0.0-beta.2 - .

## 2025-07-07 15:12:59
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.576.0 (2.651.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v1.0.0-beta.3] .
### Releases
- [Maven Central v1.0.0-beta.3] https://central.sonatype.com/artifact/com.docusign/iam-sdk/1.0.0-beta.3 - .
2 changes: 1 addition & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class Application {
public static void main(String[] args) throws OAuthErrorResponse, Exception {

IamClient sdk = IamClient.builder()
.accessToken("<YOUR_ACCESS_TOKEN_HERE>")
.accessToken(System.getenv().getOrDefault("ACCESS_TOKEN", ""))
.build();

GetUserInfoResponse res = sdk.auth().getUserInfo()
Expand Down
14 changes: 10 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ repositories {
}

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withSourcesJar()
withJavadocJar()
}
Expand Down Expand Up @@ -63,6 +61,10 @@ tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}

tasks.withType(JavaCompile).configureEach {
options.release = 11
}

sourcesJar {
archiveBaseName = "${artifactId}"
}
Expand Down Expand Up @@ -90,11 +92,15 @@ publishing {
// https://github.com/gradle/gradle/issues/18619
groupId = "com.docusign"
artifactId = "iam-sdk"
version = "1.0.0-beta.2"
version = "1.0.0-beta.3"

from components.java

pom {
properties = [
'maven.compiler.source': '11',
'maven.compiler.target': '11',
]
name = 'Docusign Java SDK'
description = 'SDK enabling Java developers to easily integrate with the Docusign API.'
url = 'https://github.com/docusign/docusign-iam-java-client'
Expand Down Expand Up @@ -144,4 +150,4 @@ dependencies {
implementation 'commons-io:commons-io:2.18.0'
}

apply from: 'build-extras.gradle'
apply from: 'build-extras.gradle'
6 changes: 3 additions & 3 deletions docs/models/components/ResponseMetadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ Control information and metadata for the response.
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `pageLimit` | *JsonNullable\<Integer>* | :heavy_minus_sign: | The maximum number of items that can be returned in a single page. | 10 |
| `pageTokenNext` | *JsonNullable\<String>* | :heavy_minus_sign: | The continuation token used to retrieve a page in a paginated response. | abc123 |
| `requestId` | *Optional\<String>* | :heavy_check_mark: | Unique identifier for the request, useful for tracking and debugging. | 3f7c9e4b-851c-4f9b-89e7-123456789abc |
| `responseTimestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The timestamp indicating when the response was generated. | 2024-10-17T14:30:00Z |
| `responseDurationMs` | *Optional\<Integer>* | :heavy_check_mark: | The duration of time, in milliseconds, that the server took to process and respond <br/>to the request. This is measured from the time the server received the request <br/>until the time the response was sent.<br/> | 150 |
| `requestId` | *JsonNullable\<String>* | :heavy_minus_sign: | Unique identifier for the request, useful for tracking and debugging. | 3f7c9e4b-851c-4f9b-89e7-123456789abc |
| `responseTimestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The timestamp indicating when the response was generated. | 2024-10-17T14:30:00Z |
| `responseDurationMs` | *JsonNullable\<Integer>* | :heavy_minus_sign: | The duration of time, in milliseconds, that the server took to process and respond <br/>to the request. This is measured from the time the server received the request <br/>until the time the response was sent.<br/> | 150 |
Loading