{"id":21465959,"url":"https://github.com/hazardooo/yougilego","last_synced_at":"2025-10-08T19:43:06.403Z","repository":{"id":262877577,"uuid":"886427510","full_name":"Hazardooo/yougilego","owner":"Hazardooo","description":"YouGile api integrations pkg","archived":false,"fork":false,"pushed_at":"2024-11-17T01:11:16.000Z","size":47,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-15T22:45:51.164Z","etag":null,"topics":["api","go","pkg","rest-api","yougile","yougile-integration"],"latest_commit_sha":null,"homepage":"https://ru.yougile.com/api-v2#/","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/Hazardooo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-11T00:20:01.000Z","updated_at":"2024-11-17T03:08:36.000Z","dependencies_parsed_at":"2024-11-14T19:40:32.153Z","dependency_job_id":"bb5e1c3f-90d4-4b72-8a0f-30158f5a0d08","html_url":"https://github.com/Hazardooo/yougilego","commit_stats":null,"previous_names":["hazardooo/yougilego"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Hazardooo/yougilego","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hazardooo%2Fyougilego","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hazardooo%2Fyougilego/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hazardooo%2Fyougilego/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hazardooo%2Fyougilego/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hazardooo","download_url":"https://codeload.github.com/Hazardooo/yougilego/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hazardooo%2Fyougilego/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000703,"owners_count":26082806,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","go","pkg","rest-api","yougile","yougile-integration"],"created_at":"2024-11-23T08:12:41.747Z","updated_at":"2025-10-08T19:43:06.388Z","avatar_url":"https://github.com/Hazardooo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![en](https://img.shields.io/badge/lang-rus-red.svg)](https://github.com/Hazardooo/yougilego/blob/main/README.ru.md)\n# YougileGo\n\nYougileGo is a Go package that provides a comprehensive set of methods and structures for connecting to and retrieving data from the Yougile platform.\n\n## Features\n\n- Authentication with Yougile.\n- Retrieve lists of companies, users, projects, departments, boards, columns, tasks, stickers, and more.\n- Manage and interact with group chats and messages.\n- Work with sprint stickers and text stickers.\n- Subscribe to webhook events.\n\n## Installation\n\nInstall YougileGo using `go get`:\n\n```sh\ngo get github.com/Hazardooo/yougilego\n```\n## Usage\nTo make it clearer to use the library, check out the [Yougile API](https://ru.yougile.com/api-v2#/) documentation.\n\n### Getting the company key\n\n[An example of using all objects](https://github.com/Hazardooo/yougilego/blob/main/example/all-objects-in-one/main.go)\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/Hazardooo/yougilego\"\n\t\"log\"\n\t\"os\"\n)\n\nfunc main() {\n\tauth := yougilego.YGAuthService{\n\t\tLogin:    os.Getenv(\"LOGIN\"), \n\t\tPassword: os.Getenv(\"PASSWORD\"),\n\t}\n\n\terr, company := auth.GetListCompany(\"Hazardooo\")\n\tif err != nil {\n\t\tlog.Println(err)\n\t\treturn\n\t}\n\tfmt.Println(company)\n\tmyCompany := company.Content[0]\n\n\terr, keysList := auth.GetKeysList(myCompany.Id)\n\tif err != nil {\n\t\tlog.Println(err)\n\t\treturn\n\t}\n\n\tvar key string\n\tif len(keysList) == 0 {\n\t\terr, key = auth.CreateKey(myCompany.Id)\n\t\tif err != nil {\n\t\t\tlog.Println(err)\n\t\t\treturn\n\t\t}\n\t} else {\n\t\tkey = keysList[0].Key\n\t}\n\tfmt.Println(key)\n}\n```\n\nIn the future, the company key will be needed to work with the rest of the YouGile data\n\n| Object                | Status |\n|-----------------------|--------|\n| users                 | Support|\n| projects              | Support|\n| project-roles         | Support|\n| departments           | Support|\n| boards                | Support|\n| columns               | Support|\n| tasks                 | Support|\n| text-stickers         | Support|\n| status-text-stickers  | Support|\n| sprint-sticker        | Support|\n| status-sprint-sticker | Support|\n| group-chats           | Support|\n| chat-messages         | Support|\n| event-subs            | Support|\n\n### Getting the tasks from column\n```go\n\tboardsService := yougilego.YGBoardsService{Key: key}\n\terr, boardList := boardsService.GetBoards()\n\tif err != nil {\n\t\tlog.Println(err)\n\t\treturn\n\t}\n\tfmt.Println(boardList)\n\tcolumnService := yougilego.YGColumnService{Key: key}\n\terr, columnList := columnService.GetColumnList()\n\tif err != nil {\n\t\tlog.Println(err)\n\t\treturn\n\t}\n\tmyColumn := columnList.Content[0]\n\ttaskService := yougilego.YGTaskService{Key: key}\n\terr, taskList := taskService.GetTasks(myColumn.Id)\n\tif err != nil {\n\t\tlog.Println(err)\n\t\treturn\n\t}\n\tfmt.Println(taskList)\n```\n\n### Example of creating an event subscription\n\n[Example of creating an event subscription](https://github.com/Hazardooo/yougilego/blob/main/example/sub-event/main.go)\n\nTo create a subscription to an event, you need to get your webhook address via [webhook.site](https://webhook.site/).\n\n```go\nfunc main() {\n\tauth := yougilego.YGAuthService{\n\t\tLogin:    os.Getenv(\"LOGIN\"),\n\t\tPassword: os.Getenv(\"PASSWORD\"),\n\t}\n\terr, company := auth.GetListCompany(\"Hazardooo\")\n\tif err != nil {\n\t\tlog.Println(err)\n\t\treturn\n\t}\n\tfmt.Println(company)\n\tmyCompany := company.Content[0]\n\terr, keysList := auth.GetKeysList(myCompany.Id)\n\tif err != nil {\n\t\tlog.Println(err)\n\t\treturn\n\t}\n\tvar key string\n\tif len(keysList) == 0 {\n\t\terr, key = auth.CreateKey(myCompany.Id)\n\t\tif err != nil {\n\t\t\tlog.Println(err)\n\t\t\treturn\n\t\t}\n\t} else {\n\t\tkey = keysList[0].Key\n\t}\n\tfmt.Println(key)\n\teventSubscribeService := yougilego.YGEventSubscribeService{Key: key}\n\terr, eventList := eventSubscribeService.GetSubscribeList(false)\n\tif err != nil {\n\t\tlog.Println(err)\n\t\treturn\n\t}\n\tvar event = yougilego.SubscribeResponse{}\n\tif len(eventList) != 0 {\n\t\tevent = eventList[0]\n\t} else {\n\t\terr, _ = eventSubscribeService.CreateSubscribe(yougilego.CreateSubs{\n\t\t\tUrl:   \"https://webhook.site/d19ddaf8-36d5-4dcd-acf1-51b91b6dd375\",\n\t\t\tEvent: \"task-created\",\n\t\t})\n\t\tif err != nil {\n\t\t\tlog.Println(err)\n\t\t\treturn\n\t\t}\n\t}\n\tfmt.Println(event)\n}\n```\nAfter creating a subscription, go to the Webhook site.site will instantly display all the events that took place in your YouGile\n\n![изображение](https://github.com/user-attachments/assets/2b8fd496-9a38-4a54-9a4e-4e86100293ca)\n![изображение](https://github.com/user-attachments/assets/78cdff49-326b-408d-8172-307142d639eb)\n\n\nVariations of event subscriptions\n| Object          | Events                                                     |\n|------------------|------------------------------------------------------------|\n| project         | created, deleted, restored, moved, renamed, updated         |\n| board           | created, deleted, restored, moved, renamed, updated         |\n| column          | created, deleted, restored, moved, renamed, updated         |\n| task            | created, deleted, restored, moved, renamed, updated         |\n| sticker         | created, deleted, restored, moved, renamed, updated         |\n| department      | created, deleted, restored, moved, renamed, updated         |\n| group_chat      | created, deleted, restored, moved, renamed, updated         |\n| chat_message    | created, deleted, restored, moved, renamed, updated         |\n| user            | added, removed                                              |\n\nTo subscribe to all events of a certain object, you can use the \u003cobject\u003e-* format. For example:\n\n- task-* — all events for tasks.\n- .* — all events for all objects.\n\n## Contributing\nContributions are welcome! Feel free to submit a pull request or open an issue to report bugs or suggest new features.\n\n## License\nThis project is licensed under the [MIT License](https://github.com/Hazardooo/yougilego/blob/main/LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazardooo%2Fyougilego","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhazardooo%2Fyougilego","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazardooo%2Fyougilego/lists"}