{"id":13414032,"url":"https://github.com/manuelbcd/go-openproject","last_synced_at":"2025-04-13T19:13:12.054Z","repository":{"id":53442848,"uuid":"338690676","full_name":"manuelbcd/go-openproject","owner":"manuelbcd","description":"Go client library for OpenProject","archived":false,"fork":false,"pushed_at":"2022-11-22T09:30:01.000Z","size":5312,"stargazers_count":16,"open_issues_count":5,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-07-31T20:53:19.928Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/manuelbcd.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-02-13T23:23:13.000Z","updated_at":"2024-04-12T14:20:15.000Z","dependencies_parsed_at":"2023-01-22T08:45:21.178Z","dependency_job_id":null,"html_url":"https://github.com/manuelbcd/go-openproject","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelbcd%2Fgo-openproject","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelbcd%2Fgo-openproject/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelbcd%2Fgo-openproject/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuelbcd%2Fgo-openproject/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manuelbcd","download_url":"https://codeload.github.com/manuelbcd/go-openproject/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248766746,"owners_count":21158301,"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":[],"created_at":"2024-07-30T20:01:55.814Z","updated_at":"2025-04-13T19:13:12.033Z","avatar_url":"https://github.com/manuelbcd.png","language":"Go","readme":"# OpenProject Go Client Library\r\n[![codecov](https://codecov.io/gh/manuelbcd/go-openproject/branch/master/graph/badge.svg?token=C945C180MG)](https://codecov.io/gh/manuelbcd/go-openproject)\r\n[![Go Report Card](https://goreportcard.com/badge/github.com/manuelbcd/go-openproject)](https://goreportcard.com/report/github.com/manuelbcd/go-openproject)\r\n[![Go Reference](https://pkg.go.dev/badge/github.com/manuelbcd/go-openproject.svg)](https://pkg.go.dev/github.com/manuelbcd/go-openproject)\r\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\r\n\r\n[Go](https://golang.org/) client library for [OpenProject](https://www.openproject.org)\r\n\r\n![Openproject client library written in Go](./go-openproject.png)\r\n\r\n## API doc\r\nhttps://docs.openproject.org/api\r\n\r\n## Usage examples\r\n\r\n### Single work-package request\r\nBasic work-package retrieval (Single work-package with ID 36353 from community.openproject.org)\r\nPlease check [examples](https://github.com/manuelbcd/go-openproject/tree/master/examples) folder for different use-cases.\r\n\r\n```go\r\nimport (\r\n\t\"fmt\"\r\n\topenproj \"github.com/manuelbcd/go-openproject\"\r\n)\r\n\r\nfunc main() {\r\n\tclient, _ := openproj.NewClient(nil, \"https://community.openproject.org/\")\r\n\twpResponse, _, err := client.WorkPackage.Get(\"36353\", nil)\r\n\tif err != nil {\r\n\t\tpanic(err)\r\n\t}\r\n\r\n\t// Output specific fields from response\r\n\tfmt.Printf(\"\\n\\nSubject: %s \\nDescription: %s\\n\\n\", wpResponse.Subject, wpResponse.Description.Raw)\r\n}\r\n```\r\n### Create a work package\r\nCreate a single work package\r\n\r\n```go\r\npackage main\r\n\r\nimport (\r\n\t\"fmt\"\r\n\t\"strings\"\r\n\r\n\topenproj \"github.com/manuelbcd/go-openproject\"\r\n)\r\n\r\nfunc main() {\r\n\tclient, err := openproj.NewClient(nil, \"https://youropenproject.url\")\r\n\tif err != nil {\r\n\t\tfmt.Printf(\"\\nerror: %v\\n\", err)\r\n\t\treturn\r\n\t}\r\n\r\n\ti := openproj.WorkPackage{\r\n\t\tSubject: \"This is my test work package\",\r\n\t\tDescription: \u0026openproj.WPDescription{\r\n\t\t\tFormat: \"textile\",\r\n\t\t\tRaw:    \"This is just a demo workpackage description\",\r\n\t\t},\r\n\t}\r\n\r\n\twpResponse, _, err := client.WorkPackage.Create(\u0026i, \"demo-project\")\r\n\tif err != nil {\r\n\t\tpanic(err)\r\n\t}\r\n\r\n\t// Output specific fields from response\r\n\tfmt.Printf(\"\\n\\nSubject: %s \\nDescription: %s\\n\\n\", wpResponse.Subject, wpResponse.Description.Raw)\r\n}\r\n```\r\n## Supported objects\r\n| Endpoint               | GET single | GET many | POST | PUT | DELETE |\r\n|------------------------| :-------------: | :-------------: | :-------------: | :-------------: | :-------------: |\r\n| Attachments (Info)     | :heavy_check_mark: | :heavy_check_mark: | *implementing* | - | *pending* |\r\n| Attachments (Download) | :heavy_check_mark: | - | - | - | - |\r\n| Categories             | :heavy_check_mark: | :heavy_check_mark: | - | - | - |\r\n| Documents              | *implementing* | - | - | - | - |\r\n| Projects               | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | *pending* | *pending* | *pending* |\r\n| Queries                | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | - | :heavy_check_mark: |\r\n| Schemas                | *pending* |\r\n| Statuses               | :heavy_check_mark: | :heavy_check_mark: | *pending* | *pending* | *pending* |\r\n| Users                  | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | :heavy_check_mark: |\r\n| Wiki Pages             | :heavy_check_mark: | *pending* | *pending* | *pending* | *pending* |\r\n| WorkPackages           | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | :heavy_check_mark: | \r\n| Activities             | :heavy_check_mark: | :heavy_check_mark: |  | | | \r\n\r\n## Thanks\r\nThanks [Wieland](https://github.com/wielinde), [Oliver](https://github.com/oliverguenther) and [OpenProject](https://github.com/opf/openproject) team for your support.\r\n\r\nThank you very much [Andy Grunwald](https://github.com/andygrunwald) for the idea and your base code.\r\n\r\nInspired in [Go Jira library](https://github.com/andygrunwald/go-jira) \r\n\r\n","funding_links":[],"categories":["Utility","Third-party APIs","第三方api"],"sub_categories":["Utility/Miscellaneous","实用程序/Miscellaneous","HTTP Clients","Fail injection"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuelbcd%2Fgo-openproject","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanuelbcd%2Fgo-openproject","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuelbcd%2Fgo-openproject/lists"}