Class DifyServerDefaultClient
java.lang.Object
io.github.guoshiqiufeng.dify.client.spring6.base.BaseDifyDefaultClient
io.github.guoshiqiufeng.dify.client.spring6.server.DifyServerDefaultClient
- All Implemented Interfaces:
io.github.guoshiqiufeng.dify.core.client.BaseDifyClient,io.github.guoshiqiufeng.dify.server.client.DifyServerClient
public class DifyServerDefaultClient
extends BaseDifyDefaultClient
implements io.github.guoshiqiufeng.dify.server.client.DifyServerClient
- Since:
- 2025/4/9 10:14
- Version:
- 0.8.0
- Author:
- yanghq
-
Field Summary
Fields inherited from class io.github.guoshiqiufeng.dify.client.spring6.base.BaseDifyDefaultClient
responseErrorHandler, restClient, webClientFields inherited from interface io.github.guoshiqiufeng.dify.core.client.BaseDifyClient
DEFAULT_BASE_URL, REQUEST_BODY_NULL_ERROR -
Constructor Summary
ConstructorsConstructorDescriptionDifyServerDefaultClient(io.github.guoshiqiufeng.dify.core.config.DifyProperties.Server difyServerProperties) DifyServerDefaultClient(io.github.guoshiqiufeng.dify.core.config.DifyProperties.Server difyServerProperties, io.github.guoshiqiufeng.dify.server.client.BaseDifyServerToken difyServerToken) DifyServerDefaultClient(io.github.guoshiqiufeng.dify.core.config.DifyProperties.Server difyServerProperties, io.github.guoshiqiufeng.dify.server.client.BaseDifyServerToken difyServerToken, String baseUrl) DifyServerDefaultClient(io.github.guoshiqiufeng.dify.core.config.DifyProperties.Server difyServerProperties, io.github.guoshiqiufeng.dify.server.client.BaseDifyServerToken difyServerToken, String baseUrl, io.github.guoshiqiufeng.dify.core.config.DifyProperties.ClientConfig clientConfig, org.springframework.web.client.RestClient.Builder restClientBuilder, org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder) -
Method Summary
Modifier and TypeMethodDescriptionio.github.guoshiqiufeng.dify.server.dto.response.AppsResponseList<io.github.guoshiqiufeng.dify.server.dto.response.AppsResponse> List<io.github.guoshiqiufeng.dify.server.dto.response.ApiKeyResponse> getAppApiKey(String appId) List<io.github.guoshiqiufeng.dify.server.dto.response.DatasetApiKeyResponse> List<io.github.guoshiqiufeng.dify.server.dto.response.ApiKeyResponse> initAppApiKey(String appId) List<io.github.guoshiqiufeng.dify.server.dto.response.DatasetApiKeyResponse> io.github.guoshiqiufeng.dify.server.dto.response.LoginResponselogin()io.github.guoshiqiufeng.dify.server.dto.response.LoginResponserefreshToken(String refreshToken)
-
Constructor Details
-
DifyServerDefaultClient
public DifyServerDefaultClient(io.github.guoshiqiufeng.dify.core.config.DifyProperties.Server difyServerProperties) -
DifyServerDefaultClient
public DifyServerDefaultClient(io.github.guoshiqiufeng.dify.core.config.DifyProperties.Server difyServerProperties, io.github.guoshiqiufeng.dify.server.client.BaseDifyServerToken difyServerToken) -
DifyServerDefaultClient
public DifyServerDefaultClient(io.github.guoshiqiufeng.dify.core.config.DifyProperties.Server difyServerProperties, io.github.guoshiqiufeng.dify.server.client.BaseDifyServerToken difyServerToken, String baseUrl) -
DifyServerDefaultClient
public DifyServerDefaultClient(io.github.guoshiqiufeng.dify.core.config.DifyProperties.Server difyServerProperties, io.github.guoshiqiufeng.dify.server.client.BaseDifyServerToken difyServerToken, String baseUrl, io.github.guoshiqiufeng.dify.core.config.DifyProperties.ClientConfig clientConfig, org.springframework.web.client.RestClient.Builder restClientBuilder, org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder)
-
-
Method Details
-
apps
public List<io.github.guoshiqiufeng.dify.server.dto.response.AppsResponse> apps(String mode, String name) - Specified by:
appsin interfaceio.github.guoshiqiufeng.dify.server.client.DifyServerClient
-
app
- Specified by:
appin interfaceio.github.guoshiqiufeng.dify.server.client.DifyServerClient
-
getAppApiKey
public List<io.github.guoshiqiufeng.dify.server.dto.response.ApiKeyResponse> getAppApiKey(String appId) - Specified by:
getAppApiKeyin interfaceio.github.guoshiqiufeng.dify.server.client.DifyServerClient
-
initAppApiKey
public List<io.github.guoshiqiufeng.dify.server.dto.response.ApiKeyResponse> initAppApiKey(String appId) - Specified by:
initAppApiKeyin interfaceio.github.guoshiqiufeng.dify.server.client.DifyServerClient
-
getDatasetApiKey
public List<io.github.guoshiqiufeng.dify.server.dto.response.DatasetApiKeyResponse> getDatasetApiKey()- Specified by:
getDatasetApiKeyin interfaceio.github.guoshiqiufeng.dify.server.client.DifyServerClient
-
initDatasetApiKey
public List<io.github.guoshiqiufeng.dify.server.dto.response.DatasetApiKeyResponse> initDatasetApiKey()- Specified by:
initDatasetApiKeyin interfaceio.github.guoshiqiufeng.dify.server.client.DifyServerClient
-
login
public io.github.guoshiqiufeng.dify.server.dto.response.LoginResponse login()- Specified by:
loginin interfaceio.github.guoshiqiufeng.dify.server.client.DifyServerClient
-
refreshToken
public io.github.guoshiqiufeng.dify.server.dto.response.LoginResponse refreshToken(String refreshToken) - Specified by:
refreshTokenin interfaceio.github.guoshiqiufeng.dify.server.client.DifyServerClient
-