{"id":26136173,"url":"https://github.com/zanzythebar/fireflyiii-client-go","last_synced_at":"2026-04-17T16:31:40.666Z","repository":{"id":280623861,"uuid":"942613595","full_name":"ZanzyTHEbar/fireflyiii-client-go","owner":"ZanzyTHEbar","description":"A feature complete firefly-iii go client","archived":false,"fork":false,"pushed_at":"2025-06-01T14:41:07.000Z","size":186,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-13T18:05:58.844Z","etag":null,"topics":["accounting","banking","client","economics","firefly","firefly-iii","go","golang","openapi","saving"],"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/ZanzyTHEbar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2025-03-04T11:38:13.000Z","updated_at":"2025-11-03T09:28:15.000Z","dependencies_parsed_at":"2025-06-01T16:20:11.367Z","dependency_job_id":"64548d44-2206-4a44-a31c-bd90eb75ee2b","html_url":"https://github.com/ZanzyTHEbar/fireflyiii-client-go","commit_stats":null,"previous_names":["zanzythebar/fireflyiii-client-go","zanzythebar/firefly-client-go"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ZanzyTHEbar/fireflyiii-client-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZanzyTHEbar%2Ffireflyiii-client-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZanzyTHEbar%2Ffireflyiii-client-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZanzyTHEbar%2Ffireflyiii-client-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZanzyTHEbar%2Ffireflyiii-client-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZanzyTHEbar","download_url":"https://codeload.github.com/ZanzyTHEbar/fireflyiii-client-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZanzyTHEbar%2Ffireflyiii-client-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31936538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["accounting","banking","client","economics","firefly","firefly-iii","go","golang","openapi","saving"],"created_at":"2025-03-11T00:20:19.261Z","updated_at":"2026-04-17T16:31:40.661Z","avatar_url":"https://github.com/ZanzyTHEbar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Firefly III Go Client\n\nA comprehensive Go client library for the Firefly III API.\n\n## Overview\n\nThis library provides a Go client for interacting with [Firefly III](https://www.firefly-iii.org/), a self-hosted financial management application. The client is based on the Firefly III OpenAPI 3.0 specification (currently targeting `firefly-iii-6.2.8`).\n\n## Features\n\n- ✅ Complete API coverage for Firefly III endpoints\n- ✅ Idiomatic Go interface for all operations\n- ✅ Support for Personal Access Token authentication\n- ✅ Comprehensive error handling\n- ✅ Pagination support for list operations\n- ✅ Context support for request cancellation\n\n## Installation\n\n```bash\ngo get github.com/ZanzyTHEbar/firefly-client-go\n```\n\n## Quick Start\n\n### Initialize the client\n\n```go\npackage main\n\nimport (\n    \"context\"\n    \"fmt\"\n    \"log\"\n    \n    firefly \"github.com/ZanzyTHEbar/firefly-client-go\"\n)\n\nfunc main() {\n    // Initialize the client with your Firefly III API URL and personal access token\n    baseURL := \"https://your-firefly-iii-instance/api\"\n    token := \"your-personal-access-token\"\n    \n    client := firefly.NewClient(baseURL, token)\n    \n    // Use a context for request cancellation and timeouts\n    ctx := context.Background()\n    \n    // Now you can use the client to interact with your Firefly III instance\n    // ...\n}\n```\n\n### Fetch accounts\n\n```go\n// List all accounts\naccounts, err := client.ListAccounts(ctx, 1, 25) // Page 1, 25 items per page\nif err != nil {\n    log.Fatalf(\"Error listing accounts: %v\", err)\n}\n\nfor _, account := range accounts {\n    fmt.Printf(\"Account: %s (ID: %s)\\n\", account.Name, account.ID)\n}\n\n// Get a specific account by ID\naccount, err := client.GetAccount(ctx, \"account-id\")\nif err != nil {\n    log.Fatalf(\"Error fetching account: %v\", err)\n}\nfmt.Printf(\"Account details: %+v\\n\", account)\n```\n\n### Create a transaction\n\n```go\n// Create a new transaction\ntx := firefly.TransactionModel{\n    Description: \"Grocery shopping\",\n    Amount:      \"42.50\",\n    Date:        time.Now().Format(\"2006-01-02\"),\n    AccountID:   \"your-account-id\",\n    Type:        \"withdrawal\",\n    // Set other fields as needed\n}\n\nif err := client.ImportTransaction(ctx, tx); err != nil {\n    log.Fatalf(\"Error creating transaction: %v\", err)\n}\nfmt.Println(\"Transaction created successfully\")\n```\n\n## API Coverage\n\nThis client provides access to all Firefly III API endpoints:\n\n- Accounts management\n- Transactions\n- Categories\n- Budgets and budget limits\n- Tags\n- Piggy banks\n- Bills\n- Rules\n- Reports and charts\n- Attachments\n- Data import/export\n\n## Error Handling\n\nThe client provides detailed error information when API requests fail:\n\n```go\nif err := client.ImportTransaction(ctx, tx); err != nil {\n    // Check for specific error types\n    if apiErr, ok := err.(*firefly.APIError); ok {\n        fmt.Printf(\"API error (%d): %s\\n\", apiErr.StatusCode, apiErr.Message)\n    } else if validErr, ok := err.(*firefly.ValidationError); ok {\n        fmt.Println(\"Validation errors:\")\n        for field, msgs := range validErr.Errors {\n            fmt.Printf(\"  %s: %v\\n\", field, msgs)\n        }\n    } else {\n        fmt.Printf(\"Error: %v\\n\", err)\n    }\n}\n```\n\n## Documentation\n\nFor detailed documentation on all available methods and types, please refer to the [GoDoc](https://pkg.go.dev/github.com/ZanzyTHEbar/firefly-client-go).\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Acknowledgements\n\n- [Firefly III](https://www.firefly-iii.org/) - The awesome free and open-source personal finance manager\n- [Firefly III API Documentation](https://api-docs.firefly-iii.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzanzythebar%2Ffireflyiii-client-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzanzythebar%2Ffireflyiii-client-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzanzythebar%2Ffireflyiii-client-go/lists"}