I’m afraid there aren’t any official examples of how to use this API, but the CodeClimate repo and docker image you linked has a nearly complete usage example as part of run.sh and reproduced below:
The REPLICATED_INTEGRATIONAPI environment variable is supplied by Replicated to all containers started by Replicated - there’s nothing you have to do to include it.
The only real thing that this example doesn’t cover is the optional ‘status’ parameter - if status: "error" is included within the json payload, Replicated will abort starting your app and display that message as an error on the dashboard.
Unfortunately, that environment variable is not automatically provided for you on Kubernetes. Here’s an example of how to use the codeclimate/update-replicated-status image to create a kubernetes job that sets your application status: