{"id":36741467,"url":"https://github.com/hayashiki/docbase-go","last_synced_at":"2026-01-12T12:29:10.021Z","repository":{"id":45494406,"uuid":"281393354","full_name":"hayashiki/docbase-go","owner":"hayashiki","description":"DocBase API Client, written in Go.","archived":false,"fork":false,"pushed_at":"2021-12-10T12:50:18.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-07-27T22:11:51.157Z","etag":null,"topics":["docbase","go"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hayashiki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-21T12:35:14.000Z","updated_at":"2021-12-10T12:50:02.000Z","dependencies_parsed_at":"2022-07-19T01:47:28.875Z","dependency_job_id":null,"html_url":"https://github.com/hayashiki/docbase-go","commit_stats":null,"previous_names":[],"tags_count":7,"template":null,"template_full_name":null,"purl":"pkg:github/hayashiki/docbase-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hayashiki%2Fdocbase-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hayashiki%2Fdocbase-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hayashiki%2Fdocbase-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hayashiki%2Fdocbase-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hayashiki","download_url":"https://codeload.github.com/hayashiki/docbase-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hayashiki%2Fdocbase-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338976,"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":["docbase","go"],"created_at":"2026-01-12T12:29:09.301Z","updated_at":"2026-01-12T12:29:10.016Z","avatar_url":"https://github.com/hayashiki.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n![Test](https://github.com/hayashiki/docbase-go/workflows/Test/badge.svg)\n[![codecov](https://codecov.io/gh/hayashiki/docbase-go/branch/develop/graph/badge.svg)](https://codecov.io/gh/hayashiki/docbase-go)\n![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)\n\n# docbase-go\n\nUnofficial DocBase API client library, written in Go.\n\n\n# Installation\n\n```\ngo get github.com/hayashiki/docbase-go\n```\n\n# Example\n\nGet all your team posts\n\n```\npackage main\n\nimport (\n  \"fmt\"\n  \"github.com/hayashiki/docbase-go\" \n)\n\n\nfunc main() {\n  client = docbase.NewClient(nil, \"your_team\", \"your_token\")\n\n  opts := \u0026docbase.PostListOptions{\n    PerPage: 5,\n    Page:    1,\n    Q:       \"query something\",\n  }\n  \n  posts, resp, err := client.Posts.List(opts)\n  if err != nil {\n    return\n  }\n  fmt.Printf(\"resp: %+v, posts: %+v\", posts)\n}\n\n```\n\n# API\n\n## Posts\n\n``` go\n// Get the information about the post list\nposts, resp, err := client.Posts.List(\u0026docbase.PostListOptions{})\n\n// Get the information about the post detail\npost, resp, err := client.Posts.Get(1234567)\n\n// Create a new post\npost, resp, err := client.Posts.Create(\u0026docbase.PostRequest{})\n\n// Update the information about the post\npost, resp, err := client.Posts.Update(1234567, \u0026docbase.PostRequest{})\n\n// Archive the post\nresp, err := client.Posts.Archive(1234567)\n\n// Unarchive the post\nresp, err := client.Posts.Unarchive(1234567)\n\n\n```\n\n## Groups\n\n``` go\n\n// Get the information about the group list\ngroups, resp, err := client.Groups.List(\u0026docbase.GroupListOptions{})\n\n// Get the information about the group detail\ngroup, resp, err := client.Groups.Get(12345)\n\n// Add the user to the group\nresp, err := client.GroupUsers.Create(12345, \u0026docbase.GroupUserCreateRequest{})\n\n// Remove the user to the group\nresp, err := client.GroupUsers.Delete(12345, \u0026docbase.GroupUserCreateRequest{})\n\n```\n\n## Tags\n\n``` go\n// Get the information about the tag list\ntags, resp, err := client.Tags.List()\n\n```\n\n## Users\n\n``` go\n// Get the information about the tag list\nusers, resp, err := client.Users.List(\u0026docbase.UserListOptions{})\n\n```\n\n## Attachments\n\n``` go\n// Download an attachment\nfile, resp, err := client.Attachments.Download(\"8babf378-1234-5678-b62b-5a2a6c536b2b.png\")\n\n// Upload an attachment, select multiple files path\nfiles, resp, err := client.Attachments.Upload([]string{\"./testdata/test-image.jpg\"})\n```\n\n# Note\n\n[Here is the original full API.](https://help.docbase.io/posts/45703)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhayashiki%2Fdocbase-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhayashiki%2Fdocbase-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhayashiki%2Fdocbase-go/lists"}