{"id":22576604,"url":"https://github.com/ndolestudio/ynote-go","last_synced_at":"2026-05-29T21:31:27.365Z","repository":{"id":261674783,"uuid":"884975740","full_name":"NdoleStudio/ynote-go","owner":"NdoleStudio","description":"Unofficial SDK for the Y-Note API","archived":false,"fork":false,"pushed_at":"2025-03-03T07:53:20.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-03T23:54:00.555Z","etag":null,"topics":["api-client","orange-money","orange-money-cameroon","y-note"],"latest_commit_sha":null,"homepage":"https://www.y-note.cm/comment-integrer-lapi-de-remboursement-orange-money/","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/NdoleStudio.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-07T18:14:01.000Z","updated_at":"2025-03-03T07:52:29.000Z","dependencies_parsed_at":"2024-11-07T20:38:31.184Z","dependency_job_id":"fd87111b-83f5-411e-a19b-d46a967f3544","html_url":"https://github.com/NdoleStudio/ynote-go","commit_stats":null,"previous_names":["ndolestudio/ynote-go"],"tags_count":0,"template":false,"template_full_name":"NdoleStudio/go-http-client","purl":"pkg:github/NdoleStudio/ynote-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Fynote-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Fynote-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Fynote-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Fynote-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NdoleStudio","download_url":"https://codeload.github.com/NdoleStudio/ynote-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NdoleStudio%2Fynote-go/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264697567,"owners_count":23650955,"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":["api-client","orange-money","orange-money-cameroon","y-note"],"created_at":"2024-12-08T04:07:20.705Z","updated_at":"2026-05-29T21:31:27.326Z","avatar_url":"https://github.com/NdoleStudio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ynote-go\n\n[![Build](https://github.com/NdoleStudio/ynote-go/actions/workflows/main.yml/badge.svg)](https://github.com/NdoleStudio/ynote-go/actions/workflows/main.yml)\n[![codecov](https://codecov.io/gh/NdoleStudio/ynote-go/branch/main/graph/badge.svg)](https://codecov.io/gh/NdoleStudio/ynote-go)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/NdoleStudio/ynote-go/badges/quality-score.png?b=main)](https://scrutinizer-ci.com/g/NdoleStudio/ynote-go/?branch=main)\n[![Go Report Card](https://goreportcard.com/badge/github.com/NdoleStudio/ynote-go)](https://goreportcard.com/report/github.com/NdoleStudio/ynote-go)\n[![GitHub contributors](https://img.shields.io/github/contributors/NdoleStudio/ynote-go)](https://github.com/NdoleStudio/ynote-go/graphs/contributors)\n[![GitHub license](https://img.shields.io/github/license/NdoleStudio/ynote-go?color=brightgreen)](https://github.com/NdoleStudio/ynote-go/blob/master/LICENSE)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/NdoleStudio/ynote-go)](https://pkg.go.dev/github.com/NdoleStudio/ynote-go)\n\n\nThis package provides a generic `go` client for the Y-Note API\n\n## Installation\n\n`ynote-go` is compatible with modern Go releases in module mode, with Go installed:\n\n```bash\ngo get github.com/NdoleStudio/ynote-go\n```\n\nAlternatively the same can be achieved if you use `import` in a package:\n\n```go\nimport \"github.com/NdoleStudio/ynote-go\"\n```\n\n\n## Implemented\n\n- **Token**\n  - `POST /oauth2/token`: Get Access Token\n- **Refund**\n  - `POST /prod/refund`: Refund a transaction\n  - `GET /prod/refund/status/{transactionID}`: Get the status of a refund transaction\n\n## Usage\n\n### Initializing the Client\n\nAn instance of the client can be created using `New()`.\n\n```go\npackage main\n\nimport (\n    \"github.com/NdoleStudio/ynote-go\"\n)\n\nfunc main() {\n    client := ynote.New(\n        ynote.WithClientID(\"\"),\n        ynote.WithClientSecret(\"\"),\n    )\n}\n```\n\n### Error handling\n\nAll API calls return an `error` as the last return object. All successful calls will return a `nil` error.\n\n```go\ntransaction, response, err := client.Refund.Status(context.Background(), \"messageID\")\nif err != nil {\n    //handle error\n}\n```\n\n## Testing\n\nYou can run the unit tests for this client from the root directory using the command below:\n\n```bash\ngo test -v\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndolestudio%2Fynote-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndolestudio%2Fynote-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndolestudio%2Fynote-go/lists"}