This library is a wrapper around the Copilot.cx collect API.
Unfortunately, this repository is no longer being maintained. If you would like to take over maintenance of the repository, please open up an issue in this repository or otherwise contact us. We apologize if this is an inconvenience at all. We are going to freeze this archive. Feel free to fork it as you desire. Best of luck!
Usage is fairly straight-forward. The init
function will read from the environment to try to configure the client. However, in some cases you may want to initialize the client programatically, so you may also call the Setup
function directly.
COPILOT_CLIENT_ID
The client id for your Copilot instanceCOPILOT_CLIENT_SECRET
The secret key for your instanceCOPILOT_CLIENT_COLLECT_ENDPOINT
The collect endpointCOPILOT_CLIENT_CONSENT_ENDPOINT
The consent endpoint, needed for GDPR systems
Testing requires an actual account. We can do some initial error checking without credentials, but full testing requires the credentials of an instance to use. Copilot currently does not offer a way to completely remove and reset data so testing may appear minimal without credentials. This library is used in production.
We use the following additional tools in this library, and thank the maintainers and contributors of those libraries:
- testify - Makes our unit tests more readable and management
- Testing needs to be expanded, ideally with an ability to use a testing sandbox or the ability to reset an environment
Are you interested in working on improving pet lives through innovative technologies and love Go, Typescript, Swift, or Java? Send an email to engineering@wagz.comand let's find out if we're a good match!
Pull Requests are welcome! See our CONTRIBUTING.md
file for more information.