- The API key is not blocking the instantiation and is not required anymore as an environment variable nor as the first argument of the constructor. Nevertheless, A warning message is printed if the key is missing.
- A custom API url can be passed a second argument of the
NewCarboneSDK
function, or it can be passed as environment varible CARBONE_URL
- Updated Carbone default API version to 4
- Increased default timeout to 60 seconds
- Added method
SetAPIHeaders
to add custom headers, headers will be added automatically to HTTP requests, usage:
csdk.SetAPIHeaders(map[string]string{
"carbone-template-delete-after": "86400",
"carbone-webhook-url": "https://...",
})
- Fix template automatic reupload
- Update Carbone default API Version to 3
- Add license and update repository URL
- Fix the
Render
method, add test and comments
- Release July 3rd, 2020
- It is possible to interact with the Carbone Render API with the following methods:
- AddTemplate: upload a template and return a templateID
- GetTemplate: return an uploaded template from a templateID
- DeleteTemplate: delete a template from a templateID
- Render: render a report from a templateID
- GenerateTemplateID: Pre compute the templateID