{"id":105,"date":"2022-04-26T22:55:44","date_gmt":"2022-04-26T22:55:44","guid":{"rendered":"https:\/\/docs.joedolson.com\/my-calendar-pro\/?p=105"},"modified":"2022-10-25T16:26:37","modified_gmt":"2022-10-25T16:26:37","slug":"rest-api-server","status":"publish","type":"post","link":"https:\/\/docs.joedolson.com\/my-calendar-pro\/rest-api-server\/","title":{"rendered":"REST API Server"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"848\" height=\"302\" src=\"https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-content\/uploads\/sites\/4\/2022\/04\/image-36.png\" alt=\"\" class=\"wp-image-107\" srcset=\"https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-content\/uploads\/sites\/4\/2022\/04\/image-36.png 848w, https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-content\/uploads\/sites\/4\/2022\/04\/image-36-300x107.png 300w, https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-content\/uploads\/sites\/4\/2022\/04\/image-36-768x274.png 768w\" sizes=\"auto, (max-width: 848px) 100vw, 848px\" \/><figcaption>REST API Server settings<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">For sites operating as an API server, you have to configure the clients that you are allowing access to post events. Only clients that match these client URLs and pass the API key you define will be allowed to post events.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Settings<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>API Key<\/strong>: You can set the API key for your site. This is an API key that any other site will need to have entered in their Endpoint settings in order to be allowed to post events on your site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>URL<\/strong>: The <code>home_url()<\/code> value of a site that you are granting permissions to post events to your site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Label<\/strong>: How that site will be labeled when it is shown on your site as an event source or when filtering events.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Display on Calendar<\/strong>: Whether the display of events from these clients should default to \u2018on\u2019 or \u2018off\u2019. If \u2018off\u2019, the events will be hidden by default. They are still available, just not visible by default.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Widget\/Shortcode<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When your site is operating as a server, the My Calendar API Filters widget or <code>[my_calendar_api_sources]<\/code> shortcode can be used to display controls for enabling and disabling events from the various sources (similar to the category filtering in the default calendar.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For sites operating as an API server, you have to configure the clients that you are allowing access to post events. Only clients that match these client URLs and pass the API key you define will be allowed to post events. Settings API Key: You can set the API key for your site. This is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,7],"tags":[],"class_list":["post-105","post","type-post","status-publish","format-standard","hentry","category-admin","category-rest-api"],"_links":{"self":[{"href":"https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-json\/wp\/v2\/posts\/105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-json\/wp\/v2\/comments?post=105"}],"version-history":[{"count":2,"href":"https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-json\/wp\/v2\/posts\/105\/revisions"}],"predecessor-version":[{"id":106,"href":"https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-json\/wp\/v2\/posts\/105\/revisions\/106"}],"wp:attachment":[{"href":"https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-json\/wp\/v2\/media?parent=105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-json\/wp\/v2\/categories?post=105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-json\/wp\/v2\/tags?post=105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}