{"id":18056250,"url":"https://github.com/micheam/go-docbase","last_synced_at":"2025-04-05T09:44:52.153Z","repository":{"id":41835746,"uuid":"327793467","full_name":"micheam/go-docbase","owner":"micheam","description":"DocBase API V2 の Go言語向け クライアントライブラリ","archived":false,"fork":false,"pushed_at":"2023-11-15T15:48:44.000Z","size":40,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-10T20:25:49.720Z","etag":null,"topics":["client-library","docbase"],"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/micheam.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":"2021-01-08T03:56:26.000Z","updated_at":"2022-03-15T08:29:32.000Z","dependencies_parsed_at":"2022-08-11T19:00:48.269Z","dependency_job_id":null,"html_url":"https://github.com/micheam/go-docbase","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micheam%2Fgo-docbase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micheam%2Fgo-docbase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micheam%2Fgo-docbase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micheam%2Fgo-docbase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micheam","download_url":"https://codeload.github.com/micheam/go-docbase/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318721,"owners_count":20919483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["client-library","docbase"],"created_at":"2024-10-31T01:14:28.850Z","updated_at":"2025-04-05T09:44:52.131Z","avatar_url":"https://github.com/micheam.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-docbase\n\n[DocBase API](https://help.docbase.io/groups/1472) Go言語向け クライアントライブラリ\n\n## Installation\n\nこのパッケージは、go getコマンドでインストールできます:\n\n```\ngo get github.com/micheam/go-docbase\n```\n\n`go doc` コマンドからドキュメントを参照してください:\n\n```\ngo doc github.com/micheam/go-docbase\n```\n\n## Usage\n\n記事の一覧抽出:\n\n```go\nvar (\n    ctx    = context.Background()\n    domain = os.Getenv(\"DOCBASE_DOMAIN\")\n    param  = url.Values{}\n)\ndocbase.SetToken(os.Getenv(\"DOCBASE_TOKEN\"))\nposts, meta, _ := docbase.ListPosts(ctx, domain, param)\nfor i := range posts {\n e   fmt.Println(posts[i].Title)\n}\n```\n\n記事詳細の取得:\n\n```go\nvar (\n    ctx    = context.Background()\n    domain = os.Getenv(\"DOCBASE_DOMAIN\")\n    postID = docbase.PostID(1863830) // 記事ID\n)\ndocbase.SetToken(os.Getenv(\"DOCBASE_TOKEN\"))\npost, _ := docbase.GetPost(ctx, domain, postID)\nfmt.Printf(\"%d:%s\\n%s\", post.ID, post.Title, post.Body)\n```\n\nその他の例については、 [examples](./examples/) を参照してみてください。\n\n## TODO\n\n|    | API Method                        | Endpoint                              |\n|----|-----------------------------------|---------------------------------------|\n|    | 所属チーム取得API                 | https://help.docbase.io/posts/92977   |\n|    | ユーザ検索API                     | https://help.docbase.io/posts/680809  |\n| ✅ | メモの検索API                     | https://help.docbase.io/posts/92984   |\n| ✅ | メモの投稿API                     | https://help.docbase.io/posts/92980   |\n| ✅ | メモの詳細取得API                 | https://help.docbase.io/posts/97204   |\n| ✅ | メモの更新API                     | https://help.docbase.io/posts/92981   |\n|    | メモのアーカイブAPI               | https://help.docbase.io/posts/665804  |\n|    | メモのアーカイブ解除API           | https://help.docbase.io/posts/665806  |\n|    | メモの削除API                     | https://help.docbase.io/posts/92982   |\n|    | コメント投稿API                   | https://help.docbase.io/posts/216289  |\n|    | コメント削除API                   | https://help.docbase.io/posts/216290  |\n|    | ファイルアップロードAPI           | https://help.docbase.io/posts/225804  |\n|    | ファイルダウンロードAPI           | https://help.docbase.io/posts/1084833 |\n| ✅ | タグの取得API                     | https://help.docbase.io/posts/92979   |\n|    | グループ作成API                   | https://help.docbase.io/posts/652985  |\n|    | グループ検索API                   | https://help.docbase.io/posts/92978   |\n|    | グループ詳細取得API               | https://help.docbase.io/posts/652983  |\n|    | グループへのユーザー追加API       | https://help.docbase.io/posts/665797  |\n|    | グループからユーザーを削除するAPI | https://help.docbase.io/posts/665799  |\n\n## License\n[MIT](./LICENSE)\n\n## Author\nmicheam \u003cmichto.maeda@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicheam%2Fgo-docbase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicheam%2Fgo-docbase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicheam%2Fgo-docbase/lists"}