Skip to content
Closed
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
Binary file modified .gradle/8.14.3/checksums/checksums.lock
Binary file not shown.
Binary file modified .gradle/8.14.3/checksums/md5-checksums.bin
Binary file not shown.
Binary file modified .gradle/8.14.3/checksums/sha1-checksums.bin
Binary file not shown.
Binary file modified .gradle/8.14.3/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified .gradle/8.14.3/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/8.14.3/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/8.14.3/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
2 changes: 1 addition & 1 deletion .gradle/buildOutputCleanup/cache.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#Fri Jul 18 22:37:14 UTC 2025
#Wed Jul 23 18:16:20 UTC 2025
gradle.version=8.14.3
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Add the dependency in your `pom.xml` file:
<dependency>
<groupId>com.pipedream</groupId>
<artifactId>pipedream</artifactId>
<version>0.0.220</version>
<version>0.0.236</version>
</dependency>
```

Expand All @@ -36,12 +36,12 @@ Instantiate and use the client with the following:
```java
package com.example.usage;

import com.pipedream.api.BaseClient;
import com.pipedream.api.PipedreamClient;
import com.pipedream.api.resources.accounts.requests.CreateAccountRequest;

public class Example {
public static void main(String[] args) {
BaseClient client = BaseClient
PipedreamClient client = PipedreamClient
.builder()
.clientId("<clientId>")
.clientSecret("<clientSecret>")
Expand All @@ -65,10 +65,10 @@ public class Example {
This SDK allows you to configure different environments for API requests.

```java
import com.pipedream.api.BaseClient;
import com.pipedream.api.PipedreamClient;
import com.pipedream.api.core.Environment;

BaseClient client = BaseClient
PipedreamClient client = PipedreamClient
.builder()
.environment(Environment.Prod)
.build();
Expand All @@ -79,9 +79,9 @@ BaseClient client = BaseClient
You can set a custom base URL when constructing the client.

```java
import com.pipedream.api.BaseClient;
import com.pipedream.api.PipedreamClient;

BaseClient client = BaseClient
PipedreamClient client = PipedreamClient
.builder()
.url("https://example.com")
.build();
Expand Down Expand Up @@ -109,12 +109,12 @@ This SDK is built to work with any instance of `OkHttpClient`. By default, if no
However, you can pass your own client like so:

```java
import com.pipedream.api.BaseClient;
import com.pipedream.api.PipedreamClient;
import okhttp3.OkHttpClient;

OkHttpClient customClient = ...;

BaseClient client = BaseClient
PipedreamClient client = PipedreamClient
.builder()
.httpClient(customClient)
.build();
Expand All @@ -135,9 +135,9 @@ A request is deemed retryable when any of the following HTTP status codes is ret
Use the `maxRetries` client option to configure this behavior.

```java
import com.pipedream.api.BaseClient;
import com.pipedream.api.PipedreamClient;

BaseClient client = BaseClient
PipedreamClient client = PipedreamClient
.builder()
.maxRetries(1)
.build();
Expand All @@ -148,11 +148,11 @@ BaseClient client = BaseClient
The SDK defaults to a 60 second timeout. You can configure this with a timeout option at the client or request level.

```java
import com.pipedream.api.BaseClient;
import com.pipedream.api.PipedreamClient;
import com.pipedream.api.core.RequestOptions;

// Client level
BaseClient client = BaseClient
PipedreamClient client = PipedreamClient
.builder()
.timeout(10)
.build();
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ java {

group = 'com.pipedream'

version = '0.0.220'
version = '0.0.236'

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand Down Expand Up @@ -79,7 +79,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.pipedream'
artifactId = 'pipedream'
version = '0.0.220'
version = '0.0.236'
from components.java
pom {
name = 'pipedream'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import com.pipedream.api.resources.users.AsyncUsersClient;
import java.util.function.Supplier;

public class AsyncBaseClient {
public class AsyncPipedreamClient {
protected final ClientOptions clientOptions;

protected final Supplier<AsyncAppCategoriesClient> appCategoriesClient;
Expand All @@ -46,7 +46,7 @@ public class AsyncBaseClient {

protected final Supplier<AsyncOauthTokensClient> oauthTokensClient;

public AsyncBaseClient(ClientOptions clientOptions) {
public AsyncPipedreamClient(ClientOptions clientOptions) {
this.clientOptions = clientOptions;
this.appCategoriesClient = Suppliers.memoize(() -> new AsyncAppCategoriesClient(clientOptions));
this.appsClient = Suppliers.memoize(() -> new AsyncAppsClient(clientOptions));
Expand Down Expand Up @@ -110,7 +110,7 @@ public AsyncOauthTokensClient oauthTokens() {
return this.oauthTokensClient.get();
}

public static AsyncBaseClientBuilder builder() {
return new AsyncBaseClientBuilder();
public static AsyncPipedreamClientBuilder builder() {
return new AsyncPipedreamClientBuilder();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import com.pipedream.api.resources.oauthtokens.OauthTokensClient;
import okhttp3.OkHttpClient;

public final class BaseClientBuilder {
public final class AsyncPipedreamClientBuilder {
private ClientOptions.Builder clientOptionsBuilder = ClientOptions.builder();

private String clientId = System.getenv("PIPEDREAM_CLIENT_ID");
Expand All @@ -24,7 +24,7 @@ public final class BaseClientBuilder {
* Sets clientId.
* Defaults to the PIPEDREAM_CLIENT_ID environment variable.
*/
public BaseClientBuilder clientId(String clientId) {
public AsyncPipedreamClientBuilder clientId(String clientId) {
this.clientId = clientId;
return this;
}
Expand All @@ -33,59 +33,59 @@ public BaseClientBuilder clientId(String clientId) {
* Sets clientSecret.
* Defaults to the PIPEDREAM_CLIENT_SECRET environment variable.
*/
public BaseClientBuilder clientSecret(String clientSecret) {
public AsyncPipedreamClientBuilder clientSecret(String clientSecret) {
this.clientSecret = clientSecret;
return this;
}

/**
* Sets projectEnvironment
*/
public BaseClientBuilder projectEnvironment(String projectEnvironment) {
public AsyncPipedreamClientBuilder projectEnvironment(String projectEnvironment) {
this.projectEnvironment = projectEnvironment;
return this;
}

public BaseClientBuilder environment(Environment environment) {
public AsyncPipedreamClientBuilder environment(Environment environment) {
this.environment = environment;
return this;
}

public BaseClientBuilder url(String url) {
public AsyncPipedreamClientBuilder url(String url) {
this.environment = Environment.custom(url);
return this;
}

/**
* Sets the timeout (in seconds) for the client. Defaults to 60 seconds.
*/
public BaseClientBuilder timeout(int timeout) {
public AsyncPipedreamClientBuilder timeout(int timeout) {
this.clientOptionsBuilder.timeout(timeout);
return this;
}

/**
* Sets the maximum number of retries for the client. Defaults to 2 retries.
*/
public BaseClientBuilder maxRetries(int maxRetries) {
public AsyncPipedreamClientBuilder maxRetries(int maxRetries) {
this.clientOptionsBuilder.maxRetries(maxRetries);
return this;
}

/**
* Sets the underlying OkHttp client
*/
public BaseClientBuilder httpClient(OkHttpClient httpClient) {
public AsyncPipedreamClientBuilder httpClient(OkHttpClient httpClient) {
this.clientOptionsBuilder.httpClient(httpClient);
return this;
}

public BaseClientBuilder projectId(String projectId) {
public AsyncPipedreamClientBuilder projectId(String projectId) {
clientOptionsBuilder.projectId(projectId);
return this;
}

public BaseClient build() {
public AsyncPipedreamClient build() {
OauthTokensClient authClient = new OauthTokensClient(
ClientOptions.builder().environment(this.environment).build());
OAuthTokenSupplier oAuthTokenSupplier = new OAuthTokenSupplier(clientId, clientSecret, authClient);
Expand All @@ -94,6 +94,6 @@ public BaseClient build() {
this.clientOptionsBuilder.addHeader("x-pd-environment", this.projectEnvironment);
}
clientOptionsBuilder.environment(this.environment);
return new BaseClient(clientOptionsBuilder.build());
return new AsyncPipedreamClient(clientOptionsBuilder.build());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import com.pipedream.api.resources.users.UsersClient;
import java.util.function.Supplier;

public class BaseClient {
public class PipedreamClient {
protected final ClientOptions clientOptions;

protected final Supplier<AppCategoriesClient> appCategoriesClient;
Expand All @@ -46,7 +46,7 @@ public class BaseClient {

protected final Supplier<OauthTokensClient> oauthTokensClient;

public BaseClient(ClientOptions clientOptions) {
public PipedreamClient(ClientOptions clientOptions) {
this.clientOptions = clientOptions;
this.appCategoriesClient = Suppliers.memoize(() -> new AppCategoriesClient(clientOptions));
this.appsClient = Suppliers.memoize(() -> new AppsClient(clientOptions));
Expand Down Expand Up @@ -110,7 +110,7 @@ public OauthTokensClient oauthTokens() {
return this.oauthTokensClient.get();
}

public static BaseClientBuilder builder() {
return new BaseClientBuilder();
public static PipedreamClientBuilder builder() {
return new PipedreamClientBuilder();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import com.pipedream.api.resources.oauthtokens.OauthTokensClient;
import okhttp3.OkHttpClient;

public final class AsyncBaseClientBuilder {
public final class PipedreamClientBuilder {
private ClientOptions.Builder clientOptionsBuilder = ClientOptions.builder();

private String clientId = System.getenv("PIPEDREAM_CLIENT_ID");
Expand All @@ -24,7 +24,7 @@ public final class AsyncBaseClientBuilder {
* Sets clientId.
* Defaults to the PIPEDREAM_CLIENT_ID environment variable.
*/
public AsyncBaseClientBuilder clientId(String clientId) {
public PipedreamClientBuilder clientId(String clientId) {
this.clientId = clientId;
return this;
}
Expand All @@ -33,59 +33,59 @@ public AsyncBaseClientBuilder clientId(String clientId) {
* Sets clientSecret.
* Defaults to the PIPEDREAM_CLIENT_SECRET environment variable.
*/
public AsyncBaseClientBuilder clientSecret(String clientSecret) {
public PipedreamClientBuilder clientSecret(String clientSecret) {
this.clientSecret = clientSecret;
return this;
}

/**
* Sets projectEnvironment
*/
public AsyncBaseClientBuilder projectEnvironment(String projectEnvironment) {
public PipedreamClientBuilder projectEnvironment(String projectEnvironment) {
this.projectEnvironment = projectEnvironment;
return this;
}

public AsyncBaseClientBuilder environment(Environment environment) {
public PipedreamClientBuilder environment(Environment environment) {
this.environment = environment;
return this;
}

public AsyncBaseClientBuilder url(String url) {
public PipedreamClientBuilder url(String url) {
this.environment = Environment.custom(url);
return this;
}

/**
* Sets the timeout (in seconds) for the client. Defaults to 60 seconds.
*/
public AsyncBaseClientBuilder timeout(int timeout) {
public PipedreamClientBuilder timeout(int timeout) {
this.clientOptionsBuilder.timeout(timeout);
return this;
}

/**
* Sets the maximum number of retries for the client. Defaults to 2 retries.
*/
public AsyncBaseClientBuilder maxRetries(int maxRetries) {
public PipedreamClientBuilder maxRetries(int maxRetries) {
this.clientOptionsBuilder.maxRetries(maxRetries);
return this;
}

/**
* Sets the underlying OkHttp client
*/
public AsyncBaseClientBuilder httpClient(OkHttpClient httpClient) {
public PipedreamClientBuilder httpClient(OkHttpClient httpClient) {
this.clientOptionsBuilder.httpClient(httpClient);
return this;
}

public AsyncBaseClientBuilder projectId(String projectId) {
public PipedreamClientBuilder projectId(String projectId) {
clientOptionsBuilder.projectId(projectId);
return this;
}

public AsyncBaseClient build() {
public PipedreamClient build() {
OauthTokensClient authClient = new OauthTokensClient(
ClientOptions.builder().environment(this.environment).build());
OAuthTokenSupplier oAuthTokenSupplier = new OAuthTokenSupplier(clientId, clientSecret, authClient);
Expand All @@ -94,6 +94,6 @@ public AsyncBaseClient build() {
this.clientOptionsBuilder.addHeader("x-pd-environment", this.projectEnvironment);
}
clientOptionsBuilder.environment(this.environment);
return new AsyncBaseClient(clientOptionsBuilder.build());
return new PipedreamClient(clientOptionsBuilder.build());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private ClientOptions(
{
put("X-Fern-Language", "JAVA");
put("X-Fern-SDK-Name", "com.pipedream.fern:api-sdk");
put("X-Fern-SDK-Version", "0.0.220");
put("X-Fern-SDK-Version", "0.0.236");
}
});
this.headerSuppliers = headerSuppliers;
Expand Down
Loading