{"id":36768955,"url":"https://github.com/taadis/dify-sdk-go","last_synced_at":"2026-01-12T13:03:13.741Z","repository":{"id":299046571,"uuid":"1000313533","full_name":"taadis/dify-sdk-go","owner":"taadis","description":"dify-sdk-go","archived":false,"fork":false,"pushed_at":"2025-06-30T02:07:05.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-30T03:23:27.011Z","etag":null,"topics":["dify","dify-client","dify-client-go","dify-sdk","dify-sdk-go","go"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/taadis/dify-sdk-go","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taadis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-11T15:28:18.000Z","updated_at":"2025-06-30T02:07:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"475ab2ae-e49e-43c6-a135-203de8efd35d","html_url":"https://github.com/taadis/dify-sdk-go","commit_stats":null,"previous_names":["taadis/dify-sdk-go"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/taadis/dify-sdk-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taadis%2Fdify-sdk-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taadis%2Fdify-sdk-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taadis%2Fdify-sdk-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taadis%2Fdify-sdk-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taadis","download_url":"https://codeload.github.com/taadis/dify-sdk-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taadis%2Fdify-sdk-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dify","dify-client","dify-client-go","dify-sdk","dify-sdk-go","go"],"created_at":"2026-01-12T13:03:13.679Z","updated_at":"2026-01-12T13:03:13.735Z","avatar_url":"https://github.com/taadis.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dify-sdk-go\n\nThis is the Go SDK for the Dify API, which allows you to easily integrate Dify into your Go applications.\n\n## API Docs\n\n[Dify - API Access](https://docs.dify.ai/en/openapi-api-access-readme)\n\n## Install\n\n```\ngo get github.com/taadis/dify-sdk-go\n```\n\n## Usage\n\nAfter installing the SDK, you can use it in your go project like this:\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"log\"\n\t\"strings\"\n\n\t\"github.com/taadis/dify-sdk-go\"\n)\n\nfunc main() {\n\tctx = context.Background()\n\tclient = dify.NewClient(\"your-dify-api-host\", \"your-api-key\")\n\treq := \u0026dify.ChatMessageRequest{\n\t\tQuery: \"your-question\",\n\t\tUser: \"your-user\",\n\t}\n\n\tvar\tch chan dify.ChatMessageStreamChannelResponse\n\tvar err error\n\tch, err = c.Api().ChatMessagesStream(ctx, req); err != nil {\n\t\treturn\n\t}\n\n\tvar strBuilder strings.Builder\n\n\tfor {\n\t\tselect {\n\t\tcase \u003c-ctx.Done():\n\t\t\treturn\n\t\tcase streamData, isOpen := \u003c-ch:\n\t\t\tif err = streamData.Err; err != nil {\n\t\t\t\tlog.Println(err.Error())\n\t\t\t\treturn\n\t\t\t}\n\t\t\tif !isOpen {\n\t\t\t\tlog.Println(strBuilder.String())\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tstrBuilder.WriteString(streamData.Answer)\n\t\t}\n\t}\n}\n\n```\n\n## License\n\nThis SDK is released under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaadis%2Fdify-sdk-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaadis%2Fdify-sdk-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaadis%2Fdify-sdk-go/lists"}