Repository navigation
Releases: Dobytchick/mcsmapi
Releases · Dobytchick/mcsmapi
Release list
v1.1.0 — SDK fixes and documentation
Highlights
- Refreshed the README, added a usage guide and changelog, and organized each example as a runnable Go package.
- Added GitHub Actions checks for formatting,
go vet, andgo test. - Fixed command dispatch, file update/upload/unzip request shapes, file list response fields, URL encoding, and HTTP/API error handling.
- Removed API-key output from requests and switched examples to the
MCSM_API_KEYenvironment variable.
API usage
- Use
Instance.SendCommandResultto read MCSManager's boolean command result.SendCommandremains available for source compatibility. - Use
File.UnzipTowith a single destination string.File.Unzipremains available for the earlier request type and expects one destination inTargets. - Set
UploadFileRequest.UploadDirwhen requesting upload credentials. The oldFileNamefield is accepted as an alias. File.UploadandFile.Downloadreturn one-time transfer credentials; file bytes must then be transferred directly to the daemon.
Security note
An older public example contained a 32-character hex string in the API-key position. The current examples use an environment variable. If that string was an active key, revoke it in MCSManager; Git history still contains the old value.
Verification
go test ./..., go vet ./..., formatting checks, and GitHub Actions passed for the merged change.