{"id":28104,"date":"2022-06-10T07:57:11","date_gmt":"2022-06-10T07:57:11","guid":{"rendered":"http:\/\/encode-google-calendar-invites-in-a-qr-code-in-nextjs"},"modified":"2022-06-10T07:57:11","modified_gmt":"2022-06-10T07:57:11","slug":"encode-google-calendar-invites-in-a-qr-code-in-nextjs","status":"publish","type":"post","link":"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/","title":{"rendered":"Encode Google Calendar Invites in Next.js"},"content":{"rendered":"<div class=\"wp-block-cloudinary-markdown \"><p>Encoding is changing data into a new format using a scheme. It is reversible, and data can be encoded to a new form and decoded to its original condition.<\/p>\n<p>Encoding should not be confused with encryption, which hides content. Both techniques are used extensively in the networking, software programming, wireless communication, and storage fields.<\/p>\n<p>In this post, we\u2019ll learn how to encode Google event invitations in a Next.js application using <code>qrcode.react<\/code> library.<\/p>\n<h2>Sandbox<\/h2>\n<p>We completed this project in a <a href=\"https:\/\/codesandbox.io\/s\/tender-goodall-uoqpt3?file=\/pages\/index.js\">CodeSandbox<\/a>. Fork and run it to quickly get started.<\/p>\n<\/div>\n  \n  <div class=\"wp-block-cloudinary-code-sandbox \">\n    <iframe\n      src=\"https:\/\/codesandbox.io\/embed\/tender-goodall-uoqpt3?theme=dark&amp;codemirror=1&amp;highlights=&amp;editorsize=50&amp;fontsize=14&amp;expanddevtools=0&amp;hidedevtools=0&amp;eslint=0&amp;forcerefresh=0&amp;hidenavigation=0&amp;initialpath=%2F&amp;module=&amp;moduleview=0&amp;previewwindow=&amp;view=&amp;runonclick=1\"\n      height=\"500\"\n      style=\"width: 100%;\"\n      title=\"encode google calendar invite in a QR code\"\n      loading=\"lazy\"\n      allow=\"accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking\"\n      sandbox=\"allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts\"\n    ><\/iframe>\n  <\/div>\n\n  <div class=\"wp-block-cloudinary-markdown \"><h2>GitHub Repository<\/h2>\n<p><a href=\"https:\/\/github.com\/Kizmelvin\/encoding-with-qrcode-react-in-next.js\">https:\/\/github.com\/Kizmelvin\/encoding-with-qrcode-react-in-next.js<\/a><\/p>\n<h2>Prerequisites<\/h2>\n<p>This post requires the following:<\/p>\n<ul>\n<li>Knowledge of JavaScript and React.js<\/li>\n<li>Installation of Node.js on the local machine<\/li>\n<li>Experience with Next.js is not a requirement but is good to have<\/li>\n<li>Basic understanding of styling with Bootstrap<\/li>\n<\/ul>\n<h2>Overview<\/h2>\n<p><a href=\"https:\/\/www.calendar.com\/\">Google Calendar<\/a> is a time-management and scheduling calendar service developed by Google. It allows users to create and edit events, set reminders, add event locations, invite other users to events, etc.<\/p>\n<p><a href=\"https:\/\/nextjs.org\/\"><strong>Next.js<\/strong><\/a> is an open-source web development framework built on Node.js, enabling React-based web application functionalities such as server-side rendering and generating static websites.<\/p>\n<p><a href=\"https:\/\/www.npmjs.com\/package\/qrcode.react\/v\/3.0.1\">qrcode.react<\/a> is a React component used to generate QR (Quick Response) codes that render in the DOM for React applications. The generated QR codes are suited for printing and on-screen scanning.<\/p>\n<p>The qrcode.react exports three components, supporting rendering as SVG or Canvas. SVG is recommended because of its flexibility, but Canvas may be preferable.<\/p>\n<h2>Setting up and Installations<\/h2>\n<p>We will run the following command in the terminal to create a new Next.js application:<\/p>\n<pre><code>npx create-next-app encode-events\n<\/code><\/pre>\n<p>The above command creates a starter Next.js application in the <strong>encode-events<\/strong> folder.<\/p>\n<p>Next, navigate into the project directory with the following command:<\/p>\n<pre><code>cd encode-events \n<\/code><\/pre>\n<p>Next, we\u2019ll install the following npm packages:\n<a href=\"https:\/\/www.npmjs.com\/package\/qrcode.react\/v\/3.0.1\">qrcode.react<\/a> &#8211; so we can easily use the component in a React environment and\n<a href=\"https:\/\/www.npmjs.com\/package\/react-bootstrap\">react-bootstrap<\/a> and <a href=\"https:\/\/www.npmjs.com\/package\/bootstrap\">Bootstrap<\/a> to add styling to the application.<\/p>\n<p>The following command will install the above packages:<\/p>\n<pre><code>npm install qrcode.react react-bootstrap bootstrap\n<\/code><\/pre>\n<p>Next, run the below command to start the application:<\/p>\n<pre><code>npm run dev # to start the dev server\n<\/code><\/pre>\n<p>Next.js will start a live development server at <a href=\"http:\/\/localhost:3000\">http:\/\/localhost:3000<\/a>.<\/p>\n<h2>Building the Application<\/h2>\n<p>First, create a <strong>Components<\/strong> folder and create a Qrcode.js file with the following snippets:<\/p>\n<pre><code>\/\/Components\/Qrcode.js\nimport React, { useRef } from &quot;react&quot;;\nimport { QRCodeSVG } from &quot;qrcode.react&quot;;\nimport { Button } from &quot;react-bootstrap&quot;;\nfunction Qrcode({ value, size }) {\n  const codeRef = useRef(null);\n  return (\n    &lt;div ref={codeRef} style={{ display: &quot;flex&quot;, flexDirection: &quot;column&quot; }}&gt;\n      &lt;QRCodeSVG size={size} value={value} \/&gt;\n      &lt;Button className=&quot;mt-3 p-2&quot; variant=&quot;primary&quot; onClick={handleSave}&gt;\n        Save SVG\n      &lt;\/Button&gt;\n    &lt;\/div&gt;\n  );\n}\nexport default Qrcode;\n<\/code><\/pre>\n<p>Here, we:<\/p>\n<ul>\n<li>Imported <code>useRef<\/code> hook from react, <code>QRCodeSVG<\/code> component from qrcode.react, and <code>Button<\/code> component from react-bootstrap<\/li>\n<li>Created codeRef constant with the <code>useRef<\/code> hook to target the element we want to save<\/li>\n<li>Rendered the <code>QRCodeSVG<\/code> component with some props and implemented a button to save the SVG<\/li>\n<\/ul>\n<p>Notice we called a <code>handleSave()<\/code> function we haven\u2019t defined; let\u2019s define it below:<\/p>\n<pre><code>\/\/Components\/Qrcode.js\n\/\/Imports here\nfunction Qrcode({ value, size }) {\n  const codeRef = useRef(null);\n  \nconst handleSave = () =&gt; {\n    const preface = '&lt;?xml version=&quot;1.0&quot; standalone=&quot;no&quot;?&gt;\\r\\n';\n    const element = codeRef.current.children[0].outerHTML;\n    const svgBlob = new Blob([preface, element], {\n      type: &quot;image\/svg+xml;charset=utf-8&quot;,\n    });\n    const svgUrl = URL.createObjectURL(svgBlob);\n    const downloadLink = document.createElement(&quot;a&quot;);\n    downloadLink.href = svgUrl;\n    downloadLink.download = &quot;qrcode.svg&quot;;\n    document.body.appendChild(downloadLink);\n    downloadLink.click();\n    document.body.removeChild(downloadLink);\n  };\n  \/\/return() function here\n}\nexport default Qrcode;\n<\/code><\/pre>\n<p>Next, import the <code>Qrcode.js<\/code> component and render it inside <code>index.js<\/code>:<\/p>\n<pre><code>\/\/pages\/index.js\nimport &quot;bootstrap\/dist\/css\/bootstrap.min.css&quot;;\nimport Qrcode from &quot;..\/Components\/Qrcode&quot;;\n\nexport default function Home() {\n\n  const GoogleEventURL =\n    &quot;https:\/\/calendar.google.com\/event?action=TEMPLATE&amp;tmeid=NXVkN2hzZWYwcDdzb2d1YTU1NzAwaTlxZWkgY2hpZGkuZXplMDAyQG0&amp;tmsrc=chidi.eze002%40gmail.com&quot;;\n\n  return (\n    &lt;div className=&quot; bg-danger&quot;&gt;\n      &lt;h1 className=&quot;p-3 text-center text-light&quot;&gt;Welcome on Board!&lt;\/h1&gt;\n      &lt;main\n        style={{\n          display: &quot;flex&quot;,\n          justifyContent: &quot;space-evenly&quot;,\n          alignItems: &quot;center&quot;,\n          padding: &quot;2rem&quot;\n        }}\n      &gt;\n        &lt;div&gt;\n          &lt;h4 className=&quot;mt-5 fs-1 text-center text-light&quot;&gt;\n            Scan to Book a Spot.\n          &lt;\/h4&gt;\n          &lt;h5 className=&quot;mt-2 fs-3 text-center text-light&quot;&gt;\n            {&quot; &quot;}\n            &lt;i&gt;Save and Share&lt;\/i&gt;{&quot; &quot;}\n          &lt;\/h5&gt;\n        &lt;\/div&gt;\n        &lt;div&gt;\n          &lt;Qrcode value={GoogleEventURL} size={300} \/&gt;\n        &lt;\/div&gt;\n      &lt;\/main&gt;\n    &lt;\/div&gt;\n  );\n}\n<\/code><\/pre>\n<p>In the snippets above, we:<\/p>\n<ul>\n<li>Imported <code>Qrcode<\/code> from <strong>Components<\/strong> folder and saved a google calendar event as <code>GoogleEventURL<\/code>\n<\/li>\n<li>Rendered the <code>Qrcode<\/code> component and passed <code>GoogleEventURL<\/code> as props to it<\/li>\n<\/ul>\n<p>Back in the browser, the application will look like the one below:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/cloudinary-marketing-res.cloudinary.com\/image\/upload\/c_limit,w_2000\/f_auto\/q_auto\/media_jams\/s_6424C1A954312EE083CD9339A0DE4BC8112968D834567EAA17B7D3E5A6C64292_1653497186970_Screenshot+2022-05-25+at+5.46.04+PM.png\" alt=\"\" loading=\"lazy\" class=\"c-transformed-asset\"  width=\"1438\" height=\"790\"\/><\/p>\n<p>Now, users can scan the code and save the invitation.<\/p>\n<h2>Conclusion<\/h2>\n<p>This article discussed transforming Google event URLs into QR codes and integrating QR codes in web applications.<\/p>\n<h2>Resources<\/h2>\n<p>The following resource might be helpful:<\/p>\n<ul>\n<li>\n<a href=\"https:\/\/github.com\/zpao\/qrcode.react\">qrcode.react repository<\/a>.<\/li>\n<li>\n<a href=\"https:\/\/www.youtube.com\/watch?v=O2HZQnbFs3Y\">Creating a google calendar event<\/a>\n<\/li>\n<\/ul>\n<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":41,"featured_media":28105,"comment_status":"","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_cloudinary_featured_overwrite":false,"footnotes":""},"categories":[1],"tags":[134,370,212,371],"class_list":["post-28104","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-guest-post","tag-image","tag-next-js","tag-under-review"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.6 (Yoast SEO v26.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Encode Google Calendar Invites in Next.js<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Encode Google Calendar Invites in Next.js\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/\" \/>\n<meta property=\"og:site_name\" content=\"Cloudinary Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-06-10T07:57:11+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"NewsArticle\",\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/\"},\"author\":{\"name\":\"\",\"@id\":\"\"},\"headline\":\"Encode Google Calendar Invites in Next.js\",\"datePublished\":\"2022-06-10T07:57:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/\"},\"wordCount\":7,\"publisher\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681925385\/Web_Assets\/blog\/d31c862cba69c0957e00ab60bd9ddcd78421adcd-992x688-1_281051782d\/d31c862cba69c0957e00ab60bd9ddcd78421adcd-992x688-1_281051782d.jpg?_i=AA\",\"keywords\":[\"Guest Post\",\"Image\",\"Next.js\",\"Under Review\"],\"inLanguage\":\"en-US\",\"copyrightYear\":\"2022\",\"copyrightHolder\":{\"@id\":\"https:\/\/cloudinary.com\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/\",\"url\":\"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/\",\"name\":\"Encode Google Calendar Invites in Next.js\",\"isPartOf\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681925385\/Web_Assets\/blog\/d31c862cba69c0957e00ab60bd9ddcd78421adcd-992x688-1_281051782d\/d31c862cba69c0957e00ab60bd9ddcd78421adcd-992x688-1_281051782d.jpg?_i=AA\",\"datePublished\":\"2022-06-10T07:57:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/#primaryimage\",\"url\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681925385\/Web_Assets\/blog\/d31c862cba69c0957e00ab60bd9ddcd78421adcd-992x688-1_281051782d\/d31c862cba69c0957e00ab60bd9ddcd78421adcd-992x688-1_281051782d.jpg?_i=AA\",\"contentUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681925385\/Web_Assets\/blog\/d31c862cba69c0957e00ab60bd9ddcd78421adcd-992x688-1_281051782d\/d31c862cba69c0957e00ab60bd9ddcd78421adcd-992x688-1_281051782d.jpg?_i=AA\",\"width\":992,\"height\":688},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cloudinary.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Encode Google Calendar Invites in Next.js\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#website\",\"url\":\"https:\/\/cloudinary.com\/blog\/\",\"name\":\"Cloudinary Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cloudinary.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#organization\",\"name\":\"Cloudinary Blog\",\"url\":\"https:\/\/cloudinary.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA\",\"contentUrl\":\"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA\",\"width\":312,\"height\":60,\"caption\":\"Cloudinary Blog\"},\"image\":{\"@id\":\"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Encode Google Calendar Invites in Next.js","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/","og_locale":"en_US","og_type":"article","og_title":"Encode Google Calendar Invites in Next.js","og_url":"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/","og_site_name":"Cloudinary Blog","article_published_time":"2022-06-10T07:57:11+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/#article","isPartOf":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/"},"author":{"name":"","@id":""},"headline":"Encode Google Calendar Invites in Next.js","datePublished":"2022-06-10T07:57:11+00:00","mainEntityOfPage":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/"},"wordCount":7,"publisher":{"@id":"https:\/\/cloudinary.com\/blog\/#organization"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/#primaryimage"},"thumbnailUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681925385\/Web_Assets\/blog\/d31c862cba69c0957e00ab60bd9ddcd78421adcd-992x688-1_281051782d\/d31c862cba69c0957e00ab60bd9ddcd78421adcd-992x688-1_281051782d.jpg?_i=AA","keywords":["Guest Post","Image","Next.js","Under Review"],"inLanguage":"en-US","copyrightYear":"2022","copyrightHolder":{"@id":"https:\/\/cloudinary.com\/#organization"}},{"@type":"WebPage","@id":"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/","url":"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/","name":"Encode Google Calendar Invites in Next.js","isPartOf":{"@id":"https:\/\/cloudinary.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/#primaryimage"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/#primaryimage"},"thumbnailUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681925385\/Web_Assets\/blog\/d31c862cba69c0957e00ab60bd9ddcd78421adcd-992x688-1_281051782d\/d31c862cba69c0957e00ab60bd9ddcd78421adcd-992x688-1_281051782d.jpg?_i=AA","datePublished":"2022-06-10T07:57:11+00:00","breadcrumb":{"@id":"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/#primaryimage","url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681925385\/Web_Assets\/blog\/d31c862cba69c0957e00ab60bd9ddcd78421adcd-992x688-1_281051782d\/d31c862cba69c0957e00ab60bd9ddcd78421adcd-992x688-1_281051782d.jpg?_i=AA","contentUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681925385\/Web_Assets\/blog\/d31c862cba69c0957e00ab60bd9ddcd78421adcd-992x688-1_281051782d\/d31c862cba69c0957e00ab60bd9ddcd78421adcd-992x688-1_281051782d.jpg?_i=AA","width":992,"height":688},{"@type":"BreadcrumbList","@id":"https:\/\/cloudinary.com\/blog\/guest_post\/encode-google-calendar-invites-in-a-qr-code-in-nextjs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudinary.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Encode Google Calendar Invites in Next.js"}]},{"@type":"WebSite","@id":"https:\/\/cloudinary.com\/blog\/#website","url":"https:\/\/cloudinary.com\/blog\/","name":"Cloudinary Blog","description":"","publisher":{"@id":"https:\/\/cloudinary.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudinary.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/cloudinary.com\/blog\/#organization","name":"Cloudinary Blog","url":"https:\/\/cloudinary.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA","contentUrl":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1649718331\/Web_Assets\/blog\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877\/cloudinary_logo_for_white_bg_1937437aa7_19374666c7_193742f877.png?_i=AA","width":312,"height":60,"caption":"Cloudinary Blog"},"image":{"@id":"https:\/\/cloudinary.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":""}]}},"jetpack_featured_media_url":"https:\/\/res.cloudinary.com\/cloudinary-marketing\/images\/f_auto,q_auto\/v1681925385\/Web_Assets\/blog\/d31c862cba69c0957e00ab60bd9ddcd78421adcd-992x688-1_281051782d\/d31c862cba69c0957e00ab60bd9ddcd78421adcd-992x688-1_281051782d.jpg?_i=AA","_links":{"self":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts\/28104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/comments?post=28104"}],"version-history":[{"count":0,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/posts\/28104\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/media\/28105"}],"wp:attachment":[{"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/media?parent=28104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/categories?post=28104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudinary.com\/blog\/wp-json\/wp\/v2\/tags?post=28104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}