Google Sheets
Last updated
Last updated
1CDMOeQtf4PEPqCgJF5C08pQdY38BwaJfCvmqAj1zvKLYbipe8bv-zke_/**
* Generate image for a template with custom data
*
* @param {string} apiKey The API key acquired in Dynapik dashboard
* @param {string} template The Template ID used to generate images
* @param {string|Array<Array<string>>} fields The header range contains all fields in the template
* @param {string|Array<Array<string>>} data The data used to replace inside the template
* @return The URL of the generated image
* @customfunction
*/
function DYNAPIK(apiKey, template, fields, data) {
return Dynapik.generateImage(apiKey, template, fields, data)
}