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, webClient

    Fields inherited from interface io.github.guoshiqiufeng.dify.core.client.BaseDifyClient

    DEFAULT_BASE_URL, REQUEST_BODY_NULL_ERROR
  • Constructor Summary

    Constructors
    Constructor
    Description
    DifyServerDefaultClient(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 Type
    Method
    Description
    io.github.guoshiqiufeng.dify.server.dto.response.AppsResponse
    app(String appId)
     
    List<io.github.guoshiqiufeng.dify.server.dto.response.AppsResponse>
    apps(String mode, String name)
     
    List<io.github.guoshiqiufeng.dify.server.dto.response.ApiKeyResponse>
     
    List<io.github.guoshiqiufeng.dify.server.dto.response.DatasetApiKeyResponse>
     
    List<io.github.guoshiqiufeng.dify.server.dto.response.ApiKeyResponse>
     
    List<io.github.guoshiqiufeng.dify.server.dto.response.DatasetApiKeyResponse>
     
    io.github.guoshiqiufeng.dify.server.dto.response.LoginResponse
     
    io.github.guoshiqiufeng.dify.server.dto.response.LoginResponse
    refreshToken(String refreshToken)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      apps in interface io.github.guoshiqiufeng.dify.server.client.DifyServerClient
    • app

      public io.github.guoshiqiufeng.dify.server.dto.response.AppsResponse app(String appId)
      Specified by:
      app in interface io.github.guoshiqiufeng.dify.server.client.DifyServerClient
    • getAppApiKey

      public List<io.github.guoshiqiufeng.dify.server.dto.response.ApiKeyResponse> getAppApiKey(String appId)
      Specified by:
      getAppApiKey in interface io.github.guoshiqiufeng.dify.server.client.DifyServerClient
    • initAppApiKey

      public List<io.github.guoshiqiufeng.dify.server.dto.response.ApiKeyResponse> initAppApiKey(String appId)
      Specified by:
      initAppApiKey in interface io.github.guoshiqiufeng.dify.server.client.DifyServerClient
    • getDatasetApiKey

      public List<io.github.guoshiqiufeng.dify.server.dto.response.DatasetApiKeyResponse> getDatasetApiKey()
      Specified by:
      getDatasetApiKey in interface io.github.guoshiqiufeng.dify.server.client.DifyServerClient
    • initDatasetApiKey

      public List<io.github.guoshiqiufeng.dify.server.dto.response.DatasetApiKeyResponse> initDatasetApiKey()
      Specified by:
      initDatasetApiKey in interface io.github.guoshiqiufeng.dify.server.client.DifyServerClient
    • login

      public io.github.guoshiqiufeng.dify.server.dto.response.LoginResponse login()
      Specified by:
      login in interface io.github.guoshiqiufeng.dify.server.client.DifyServerClient
    • refreshToken

      public io.github.guoshiqiufeng.dify.server.dto.response.LoginResponse refreshToken(String refreshToken)
      Specified by:
      refreshToken in interface io.github.guoshiqiufeng.dify.server.client.DifyServerClient