Documentation
¶
Overview ¶
Package api provides a client for interacting with Dify.AI API
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppInfo ¶
type AppInfo struct {
ID string `json:"id"`
Name string `json:"name"`
UpdatedAt interface{} `json:"updated_at"` // Changed to interface{} to handle both string and numeric types
}
AppInfo represents the basic information about a Dify application
type Client ¶
type Client struct {
BaseURL string
HTTPClient *http.Client
// contains filtered or unexported fields
}
Client represents a Dify API client
func (*Client) DoesDSLExist ¶
DoesDSLExist checks if a DSL exists in Dify for the given app ID
func (*Client) GetAppInfo ¶
GetAppInfo fetches application information from Dify
func (*Client) GetAppList ¶
GetAppList fetches all applications from Dify
type LoginResponse ¶
type LoginResponse struct {
Status string `json:"status"`
Data struct {
AccessToken string `json:"access_token"`
} `json:"data"`
}
LoginResponse represents the response from the login API
Click to show internal directories.
Click to hide internal directories.