Skip to content

Releases: Dobytchick/mcsmapi

v1.1.0 — SDK fixes and documentation

Choose a tag to compare

@SleNdd SleNdd released this 25 Sep 09:03
9f8a376

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, and go 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_KEY environment variable.

API usage

  • Use Instance.SendCommandResult to read MCSManager's boolean command result. SendCommand remains available for source compatibility.
  • Use File.UnzipTo with a single destination string. File.Unzip remains available for the earlier request type and expects one destination in Targets.
  • Set UploadFileRequest.UploadDir when requesting upload credentials. The old FileName field is accepted as an alias.
  • File.Upload and File.Download return 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.

v1.0.2

Choose a tag to compare

@Dobytchick Dobytchick released this 16 May 09:09
ApiKey -> AccessKey

v1.0.0

Choose a tag to compare

@Dobytchick Dobytchick released this 16 May 08:02
init