{"id":19420119,"url":"https://github.com/einride/monta-go","last_synced_at":"2025-04-24T14:32:03.757Z","repository":{"id":60729537,"uuid":"533880445","full_name":"einride/monta-go","owner":"einride","description":"Go SDK for accessing the Monta Partner API","archived":false,"fork":false,"pushed_at":"2025-04-01T15:43:05.000Z","size":5206,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-03T06:23:35.375Z","etag":null,"topics":["charging","go","golang","monta"],"latest_commit_sha":null,"homepage":"https://partner-api.monta.app/docs","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/einride.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-07T17:59:11.000Z","updated_at":"2025-03-03T14:57:36.000Z","dependencies_parsed_at":"2023-09-25T01:52:06.738Z","dependency_job_id":"c19bb947-59d0-4e98-a0fe-996fa395340d","html_url":"https://github.com/einride/monta-go","commit_stats":{"total_commits":113,"total_committers":9,"mean_commits":"12.555555555555555","dds":0.6371681415929203,"last_synced_commit":"e9eaa5166e0ab892c92acb844cce2d34c21cfa86"},"previous_names":[],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/einride%2Fmonta-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/einride%2Fmonta-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/einride%2Fmonta-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/einride%2Fmonta-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/einride","download_url":"https://codeload.github.com/einride/monta-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250643492,"owners_count":21464186,"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":["charging","go","golang","monta"],"created_at":"2024-11-10T13:21:12.884Z","updated_at":"2025-04-24T14:32:02.968Z","avatar_url":"https://github.com/einride.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Monta Go SDK\n\n[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)\n\nA Go SDK for the [Monta](https://monta.app) Partner API.\n\n## Usage\n\n### Client\n\n```go\nclient := monta.NewClient(monta.WithClientIDAndSecret(\"\u003cID\u003e\", \"\u003cSECRET\u003e\")\n```\n\n#### `GET /v1/auth/me`\n\n```go\nme, err := client.GetMe(ctx)\nif err != nil {\n\tpanic(err)\n}\nfmt.Println(me)\n```\n\n#### `GET /v1/sites`\n\n```go\nresponse, err := client.ListSites(ctx, \u0026monta.ListSitesRequest{\n\tPage:    1,\n\tPerPage: 10,\n})\nif err != nil {\n\tpanic(err)\n}\nfmt.Println(response)\n```\n\n#### `GET /v1/charge-points`\n\n```go\nresponse, err := client.ListChargePoints(ctx, \u0026monta.ListChargePointsRequest{\n\tPage:    1,\n\tPerPage: 10,\n})\nif err != nil {\n\tpanic(err)\n}\nfmt.Println(response)\n```\n\n### CLI\n\n#### Build\n\nFirst you need to build the CLI - to create the monta CLI executable. Assuming you are on root level of the project:\n\n```\n$ cd cmd/monta\n$ go build\n```\n\n#### Login\n\n```\n$ ./monta login --client-id \u003cID\u003e --client-secret \u003cSECRET\u003e\n```\n\n#### `GET /v1/auth/me`\n\n```\n$ ./monta me\n```\n\n#### `GET /v1/sites`\n\n```\n$ ./monta sites\n```\n\n#### `GET /v1/charge-points`\n\n```\n$ ./monta charge-points\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feinride%2Fmonta-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feinride%2Fmonta-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feinride%2Fmonta-go/lists"}