{"id":503,"date":"2019-09-02T09:15:37","date_gmt":"2019-09-02T09:15:37","guid":{"rendered":"https:\/\/www.marketplacedoc.onoffice.de\/code-beispiele\/"},"modified":"2022-07-29T14:35:31","modified_gmt":"2022-07-29T12:35:31","slug":"code-examples","status":"publish","type":"page","link":"https:\/\/www.marketplacedoc.onoffice.de\/en\/code-examples\/","title":{"rendered":"Code examples"},"content":{"rendered":"\n<style type=\"text\/css\" data-created_by=\"avia_inline_auto\" id=\"style-css-av-5ays-dfee786cbc446d94fc0b910afc3f3657\">\n.flex_column.av-5ays-dfee786cbc446d94fc0b910afc3f3657{\nborder-radius:0px 0px 0px 0px;\npadding:0px 0px 0px 0px;\n}\n<\/style>\n<div  class='flex_column av-5ays-dfee786cbc446d94fc0b910afc3f3657 av_one_full  avia-builder-el-0  avia-builder-el-no-sibling  first flex_column_div av-zero-column-padding  '     ><section  class='av_textblock_section av-jyo5jo6y-0748facdabe2ab0ad92df6ee8dfecb9b '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/CreativeWork\" ><div class='avia_textblock'  itemprop=\"text\" ><h1><em>Code examples<\/em><\/h1>\n<\/div><\/section><br \/>\n\n<style type=\"text\/css\" data-created_by=\"avia_inline_auto\" id=\"style-css-av-jyo5ggp9-33cda40596f0cf1b37e23902fa5d7859\">\n#top .hr.hr-invisible.av-jyo5ggp9-33cda40596f0cf1b37e23902fa5d7859{\nheight:20px;\n}\n<\/style>\n<div  class='hr av-jyo5ggp9-33cda40596f0cf1b37e23902fa5d7859 hr-invisible  avia-builder-el-2  el_after_av_textblock  el_before_av_textblock '><span class='hr-inner '><span class=\"hr-inner-style\"><\/span><\/span><\/div><br \/>\n<section  class='av_textblock_section av-jyo5jo6y-0748facdabe2ab0ad92df6ee8dfecb9b '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/CreativeWork\" ><div class='avia_textblock'  itemprop=\"text\" ><p>PHP example to unlock the API:<\/p>\n<div  class='avia-button-wrap av-yuqf-443167a8b9082596d68e73d661e698ef-wrap avia-button-left  avia-builder-el-4  avia-builder-el-no-sibling '><a href='https:\/\/github.com\/onOfficeGmbH\/sdk\/blob\/master\/examples\/03-marketplace-unlock-provider.php'  class='avia-button av-yuqf-443167a8b9082596d68e73d661e698ef av-link-btn avia-icon_select-yes-left-icon avia-size-medium avia-position-left avia-color-theme-color'  target=\"_blank\"  rel=\"noopener noreferrer\"  aria-label=\"PHP example to unlock the API\"><span class='avia_button_icon avia_button_icon_left avia-iconfont avia-font-entypo-fontello' data-av_icon='\ue834' data-av_iconfont='entypo-fontello' ><\/span><span class='avia_iconbox_title' >PHP example to unlock the API<\/span><\/a><\/div>\n<\/div><\/section><br \/>\n<section  class='av_textblock_section av-jyo5jo6y-0748facdabe2ab0ad92df6ee8dfecb9b '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/CreativeWork\" ><div class='avia_textblock'  itemprop=\"text\" ><p>Source files for the activation process:<\/p>\n<div  class='avia-button-wrap av-yuqf-63ab2b81385303bf815e595a62cd062e-wrap avia-button-left  avia-builder-el-6  avia-builder-el-no-sibling '><a href='https:\/\/github.com\/onOfficeGmbH\/marketplace-examples\/tree\/master\/examples\/ProviderUnlock'  class='avia-button av-yuqf-63ab2b81385303bf815e595a62cd062e av-link-btn avia-icon_select-yes-left-icon avia-size-medium avia-position-left avia-color-theme-color'  target=\"_blank\"  rel=\"noopener noreferrer\"  aria-label=\"Activation\"><span class='avia_button_icon avia_button_icon_left avia-iconfont avia-font-entypo-fontello' data-av_icon='\ue834' data-av_iconfont='entypo-fontello' ><\/span><span class='avia_iconbox_title' >Activation<\/span><\/a><\/div>\n<\/div><\/section><br \/>\n<section  class='av_textblock_section av-jyo5jo6y-0748facdabe2ab0ad92df6ee8dfecb9b '   itemscope=\"itemscope\" itemtype=\"https:\/\/schema.org\/CreativeWork\" ><div class='avia_textblock'  itemprop=\"text\" ><p>Demo shop website in PHP as template for your shop:<\/p>\n<div  class='avia-button-wrap av-yuqf-ed51f7e5b23373b41e2508ddbade3356-wrap avia-button-left  avia-builder-el-8  avia-builder-el-no-sibling '><a href=' https:\/\/github.com\/onOfficeGmbH\/marketplace-examples\/tree\/master\/examples\/Shop'  class='avia-button av-yuqf-ed51f7e5b23373b41e2508ddbade3356 av-link-btn avia-icon_select-yes-left-icon avia-size-medium avia-position-left avia-color-theme-color'  target=\"_blank\"  rel=\"noopener noreferrer\"  aria-label=\"Demo shop website\"><span class='avia_button_icon avia_button_icon_left avia-iconfont avia-font-entypo-fontello' data-av_icon='\ue834' data-av_iconfont='entypo-fontello' ><\/span><span class='avia_iconbox_title' >Demo shop website<\/span><\/a><\/div>\n<p>Please note that the demo shop does not validate the URL or signature, so this must be implemented by you.<\/p>\n<\/div><\/section><\/p><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-503","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Code examples - onOffice Marketplace<\/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:\/\/www.marketplacedoc.onoffice.de\/en\/code-examples\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Code examples - onOffice Marketplace\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.marketplacedoc.onoffice.de\/en\/code-examples\/\" \/>\n<meta property=\"og:site_name\" content=\"onOffice Marketplace\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-29T12:35:31+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.marketplacedoc.onoffice.de\/en\/code-examples\/\",\"url\":\"https:\/\/www.marketplacedoc.onoffice.de\/en\/code-examples\/\",\"name\":\"Code examples - onOffice Marketplace\",\"isPartOf\":{\"@id\":\"https:\/\/www.marketplacedoc.onoffice.de\/#website\"},\"datePublished\":\"2019-09-02T09:15:37+00:00\",\"dateModified\":\"2022-07-29T12:35:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.marketplacedoc.onoffice.de\/en\/code-examples\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.marketplacedoc.onoffice.de\/en\/code-examples\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.marketplacedoc.onoffice.de\/en\/code-examples\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.marketplacedoc.onoffice.de\/en\/homepage\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Code examples\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.marketplacedoc.onoffice.de\/#website\",\"url\":\"https:\/\/www.marketplacedoc.onoffice.de\/\",\"name\":\"onOffice Marketplace\",\"description\":\"Dokumentation\",\"publisher\":{\"@id\":\"https:\/\/www.marketplacedoc.onoffice.de\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.marketplacedoc.onoffice.de\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.marketplacedoc.onoffice.de\/#organization\",\"name\":\"onOffice GmbH\",\"url\":\"https:\/\/www.marketplacedoc.onoffice.de\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.marketplacedoc.onoffice.de\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.marketplacedoc.onoffice.de\/wp-content\/uploads\/2019\/07\/onOffice-Logo.png\",\"contentUrl\":\"https:\/\/www.marketplacedoc.onoffice.de\/wp-content\/uploads\/2019\/07\/onOffice-Logo.png\",\"width\":209,\"height\":72,\"caption\":\"onOffice GmbH\"},\"image\":{\"@id\":\"https:\/\/www.marketplacedoc.onoffice.de\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Code examples - onOffice Marketplace","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:\/\/www.marketplacedoc.onoffice.de\/en\/code-examples\/","og_locale":"en_US","og_type":"article","og_title":"Code examples - onOffice Marketplace","og_url":"https:\/\/www.marketplacedoc.onoffice.de\/en\/code-examples\/","og_site_name":"onOffice Marketplace","article_modified_time":"2022-07-29T12:35:31+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.marketplacedoc.onoffice.de\/en\/code-examples\/","url":"https:\/\/www.marketplacedoc.onoffice.de\/en\/code-examples\/","name":"Code examples - onOffice Marketplace","isPartOf":{"@id":"https:\/\/www.marketplacedoc.onoffice.de\/#website"},"datePublished":"2019-09-02T09:15:37+00:00","dateModified":"2022-07-29T12:35:31+00:00","breadcrumb":{"@id":"https:\/\/www.marketplacedoc.onoffice.de\/en\/code-examples\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.marketplacedoc.onoffice.de\/en\/code-examples\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.marketplacedoc.onoffice.de\/en\/code-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.marketplacedoc.onoffice.de\/en\/homepage\/"},{"@type":"ListItem","position":2,"name":"Code examples"}]},{"@type":"WebSite","@id":"https:\/\/www.marketplacedoc.onoffice.de\/#website","url":"https:\/\/www.marketplacedoc.onoffice.de\/","name":"onOffice Marketplace","description":"Dokumentation","publisher":{"@id":"https:\/\/www.marketplacedoc.onoffice.de\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.marketplacedoc.onoffice.de\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.marketplacedoc.onoffice.de\/#organization","name":"onOffice GmbH","url":"https:\/\/www.marketplacedoc.onoffice.de\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.marketplacedoc.onoffice.de\/#\/schema\/logo\/image\/","url":"https:\/\/www.marketplacedoc.onoffice.de\/wp-content\/uploads\/2019\/07\/onOffice-Logo.png","contentUrl":"https:\/\/www.marketplacedoc.onoffice.de\/wp-content\/uploads\/2019\/07\/onOffice-Logo.png","width":209,"height":72,"caption":"onOffice GmbH"},"image":{"@id":"https:\/\/www.marketplacedoc.onoffice.de\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.marketplacedoc.onoffice.de\/en\/wp-json\/wp\/v2\/pages\/503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.marketplacedoc.onoffice.de\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.marketplacedoc.onoffice.de\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.marketplacedoc.onoffice.de\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.marketplacedoc.onoffice.de\/en\/wp-json\/wp\/v2\/comments?post=503"}],"version-history":[{"count":3,"href":"https:\/\/www.marketplacedoc.onoffice.de\/en\/wp-json\/wp\/v2\/pages\/503\/revisions"}],"predecessor-version":[{"id":581,"href":"https:\/\/www.marketplacedoc.onoffice.de\/en\/wp-json\/wp\/v2\/pages\/503\/revisions\/581"}],"wp:attachment":[{"href":"https:\/\/www.marketplacedoc.onoffice.de\/en\/wp-json\/wp\/v2\/media?parent=503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}