{"id":16793513,"url":"https://github.com/mdp/go-statx","last_synced_at":"2026-01-03T05:54:26.968Z","repository":{"id":66279387,"uuid":"69572526","full_name":"mdp/go-statx","owner":"mdp","description":"Simple CLI and library for StatX API","archived":false,"fork":false,"pushed_at":"2017-01-08T00:34:00.000Z","size":24,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-23T12:14:52.265Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mdp.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":"2016-09-29T13:55:16.000Z","updated_at":"2018-08-22T23:22:50.000Z","dependencies_parsed_at":"2024-06-20T01:32:29.768Z","dependency_job_id":null,"html_url":"https://github.com/mdp/go-statx","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdp%2Fgo-statx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdp%2Fgo-statx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdp%2Fgo-statx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdp%2Fgo-statx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdp","download_url":"https://codeload.github.com/mdp/go-statx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243960636,"owners_count":20375107,"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":"2024-10-13T08:49:31.123Z","updated_at":"2026-01-03T05:54:26.941Z","avatar_url":"https://github.com/mdp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-statx\n\n## Installation\n\n\n### The CLI\n\n`go get -u github.com/mdp/go-statx/...`\n\n### Just the library\n\n`go get -u github.com/mdp/go-statx`\n\n## Usage\n\n\n### CLI\n\n`statx login +14158675309`  \nEnter verification code from StatX and if successful you will receive API keys\n\nGet a list of groups  \n`statx --apikey 12345abcdef --authtoken yourauthtoken list`\n\nGet a list of Stats in a group  \n`statx --apikey 12345abcdef --authtoken yourauthtoken list --group groupid`\n\nUpdate the value of a Stat  \n`statx --apikey 12345abcdef --authtoken yourauthtoken update --group groupid --stat statid --value 47`\n\n### Library\n\n```go\nclient := statx.NewAuthenticatedClient(nil, \"apikey\", \"authtoken\")\nstatList, _, err := client.Stats.List(\"GroupID\")\n\n# Update a stat\nstat := \u0026statx.Stat{Value: \"47\"}\nupdatedStat, _, err := client.Stats.Update(\"GroupID\", statList[0].ID, stat)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdp%2Fgo-statx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdp%2Fgo-statx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdp%2Fgo-statx/lists"}