{"id":18679681,"url":"https://github.com/savely-krasovsky/pyrusapi-go","last_synced_at":"2025-08-03T11:09:03.647Z","repository":{"id":37337089,"uuid":"388142105","full_name":"savely-krasovsky/pyrusapi-go","owner":"savely-krasovsky","description":"Library to work with Pyrus written in Golang","archived":false,"fork":false,"pushed_at":"2025-02-05T02:51:23.000Z","size":104,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T03:14:19.337Z","etag":null,"topics":["go","golang","golang-library","pyrus","task-management-system"],"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/savely-krasovsky.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":"2021-07-21T14:24:00.000Z","updated_at":"2024-12-16T02:39:24.000Z","dependencies_parsed_at":"2024-04-06T15:26:33.466Z","dependency_job_id":"77344e84-27a1-4642-a2c0-d8ca1304bc2d","html_url":"https://github.com/savely-krasovsky/pyrusapi-go","commit_stats":null,"previous_names":["l11r/go-pyrus","savely-krasovsky/pyrusapi-go","l11r/pyrusapi-go"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savely-krasovsky%2Fpyrusapi-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savely-krasovsky%2Fpyrusapi-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savely-krasovsky%2Fpyrusapi-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savely-krasovsky%2Fpyrusapi-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/savely-krasovsky","download_url":"https://codeload.github.com/savely-krasovsky/pyrusapi-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248510001,"owners_count":21116130,"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":["go","golang","golang-library","pyrus","task-management-system"],"created_at":"2024-11-07T09:45:36.543Z","updated_at":"2025-04-12T03:14:24.756Z","avatar_url":"https://github.com/savely-krasovsky.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyrusapi-go\n\n[![GoDoc Widget](https://godoc.org/github.com/L11R/pyrusapi-go?status.svg)](https://godoc.org/github.com/L11R/pyrusapi-go)\n[![Go Report](https://goreportcard.com/badge/github.com/L11R/pyrusapi-go)](https://goreportcard.com/report/github.com/L11R/pyrusapi-go)\n[![codecov](https://codecov.io/gh/L11R/pyrusapi-go/branch/master/graph/badge.svg)](https://codecov.io/gh/L11R/pyrusapi-go)\n![test](https://github.com/L11R/pyrusapi-go/actions/workflows/test.yml/badge.svg)\n![lint](https://github.com/L11R/pyrusapi-go/actions/workflows/lint.yml/badge.svg)\n\n\nLibrary to work with Pyrus API v4 written in Golang.\n\n## Install\n`go get github.com/L11R/pyrusapi-go`\n\n## Quick Start\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/L11R/pyrusapi-go\"\n)\n\nfunc main() {\n\tc, err := pyrus.NewClient(\"bot_login\", \"bot_security_key\")\n\tif err != nil {\n\t\tlog.Fatalln(err)\n\t}\n\n\tp, err := c.Profile()\n\tif err != nil {\n\t\tlog.Fatalln(err)\n\t}\n\n\tfmt.Println(p.FirstName)\n}\n```\n\n## Current status\n\nForms:\n- [x] `GET /forms`\n- [x] `GET /forms/{form-id}`\n- [x] `GET /forms/{form-id}/register`\n\nTasks:\n- [x] `GET /tasks/{task-id}`\n- [x] `POST /tasks`\n- [x] `POST /tasks/{task-id}/comments`\n\nFiles:\n- [x] `POST /files/upload`\n- [x] `GET /files/download/{file-id}`\n\nCatalogs:\n- [x] `GET /catalogs`\n- [x] `GET /catalogs/{catalog-id}`\n- [x] `PUT /catalogs`\n- [x] `POST /catalogs/{catalog-id}`\n\nContacts:\n- [x] `GET /contacts`\n\nMembers:\n- [x] `GET /members`\n- [x] `POST /members`\n- [x] `PUT /members/{member-id}`\n- [x] `DELETE /members/{member-id}`\n\nLists:\n- [x] `GET /lists`\n- [x] `GET /lists/{list-id}/tasks`\n- [x] `GET /inbox`\n\nTelephony:\n- [x] `GET /calls`\n- [x] `PUT /calls/{call-guid}`\n- [x] `POST /calls/{call-guid}/event`\n\nWebhooks:\n- [x] Use `WebhookHandler() (http.HandlerFunc, \u003c-chan Event)`\n\n# Tests\nTo test project you have to download sample responses from your organization. I cannot upload my own, because it could\ncontain sensitive information, and I'm too lazy to fake it :)\n\nSet those environment variables and run tests:\n```dotenv\nPYRUS_LOGIN=login\nPYRUS_SECURITY_KEY=securityKey\nPYRUS_FORM_ID=123456\nPYRUS_TASK_ID=123456\nPYRUS_CATALOG_ID=123456\nPYRUS_MEMBER_ID=123456\nPYRUS_ROLE_ID=123456\nPYRUS_LIST_ID=123456\nPYRUS_FILE_ID=123456\nPYRUS_CALL_GUID=5d8dc3d6-27e7-4cd4-a057-2b4f4d74e0a5\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavely-krasovsky%2Fpyrusapi-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsavely-krasovsky%2Fpyrusapi-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavely-krasovsky%2Fpyrusapi-go/lists"}