It is the S3 API. Change the endpoint and keep your code.
No XNS SDK, no client library, no proprietary protocol. Point boto3, the AWS CLI, mc or your own signer at the gateway you run, sign with Signature Version 4, and everything below is reference material for the parts where the details matter.
