{"id":27953825,"url":"https://github.com/glef1x/go-qiwi-sdk","last_synced_at":"2025-05-07T17:15:03.051Z","repository":{"id":57641295,"uuid":"421762912","full_name":"GLEF1X/go-qiwi-sdk","owner":"GLEF1X","description":"Training project, especially to educate basic features of golang","archived":false,"fork":false,"pushed_at":"2023-03-06T23:34:13.000Z","size":76,"stargazers_count":3,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T17:14:59.635Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GLEF1X.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-10-27T09:53:05.000Z","updated_at":"2023-02-11T19:42:54.000Z","dependencies_parsed_at":"2024-06-20T22:06:21.557Z","dependency_job_id":null,"html_url":"https://github.com/GLEF1X/go-qiwi-sdk","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GLEF1X%2Fgo-qiwi-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GLEF1X%2Fgo-qiwi-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GLEF1X%2Fgo-qiwi-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GLEF1X%2Fgo-qiwi-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GLEF1X","download_url":"https://codeload.github.com/GLEF1X/go-qiwi-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252922318,"owners_count":21825639,"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":"2025-05-07T17:15:02.317Z","updated_at":"2025-05-07T17:15:03.032Z","avatar_url":"https://github.com/GLEF1X.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SDK for QIWI API, written with golang\n\n\n### Quick example:\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"github.com/GLEF1X/qiwi-golang-sdk/p2p\"\n\t\"github.com/GLEF1X/qiwi-golang-sdk/types\"\n)\n\nfunc main() {\n\tconfig, err := p2p.NewConfig(\"some token\")\n\tif err != nil {\n\t\t// handle it gracefully\n\t\tpanic(err)\n\t}\n\thttpClient := p2p.NewAPIClient(config)\n\tbill, err := httpClient.CreateBill(\n\t\tcontext.Background(),\n\t\t\u0026p2p.BillCreationOptions{\n\t\t\tAmount: types.RequestAmount{\n\t\t\t\tValue: 5.0, Currency: \"RUB\",\n\t\t\t},\n\t\t},\n\t)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Println(bill.PayUrl)\n}\n```\n\n### Polling: \n\n```go\npackage main\n\nimport (\n\t\"log\"\n\n\t\"github.com/GLEF1X/go-qiwi-sdk/qiwi\"\n\t\"github.com/GLEF1X/go-qiwi-sdk/qiwi/polling\"\n\t\"github.com/GLEF1X/go-qiwi-sdk/types\"\n)\n\nfunc main() {\n\tconfig, err := qiwi.NewConfig(\"token\", \"+phone_number\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tapiClient := qiwi.NewAPIClient(config)\n\n\tdp := polling.NewDispatcher(\u0026polling.Config{MaxConcurrent: 10})\n\n\tdp.HandleTransaction(func(transaction *types.Transaction) {\n\t\tlog.Println(transaction.ID)\n\t})\n\n\tdp.HandleError(func(err error) {\n\t\tlog.Println(\"Handle error in error handler\")\n\t})\n\n\tdp.StartPolling(apiClient)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglef1x%2Fgo-qiwi-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglef1x%2Fgo-qiwi-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglef1x%2Fgo-qiwi-sdk/lists"}