Calendar page
About this tool
How to use it
- Choose this tool. You do not need to add a file.
- Choose month, year or week and enter the year and month.
- Set the week start, language, and any events or holidays you want to show.
- Choose a picture or PDF and press Generate.
- Download or print the calendar.
What you get back
Try Calendar page in the Studio
Use it from your code
cURL
curl -X POST "https://app.h2i.davixlabs.io/v1/render/calendar" \
-H "X-Api-Key: $DAVIX_H2I_API_KEY" \
-F 'view=month' \
-F 'year=1900' \
-F 'month=1'Node.js
const { DavixH2I } = require('@davixlabs/h2i-sdk');
const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.render.calendar({
"view": "month",
"year": 1900,
"month": 1
});
console.log(result.data, result.requestId);PHP
<?php
require 'vendor/autoload.php';
$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->render()->calendar([
'view' => 'month',
'year' => 1900,
'month' => 1,
]);
echo $result->requestId;