{"id":110,"date":"2022-04-26T23:06:48","date_gmt":"2022-04-26T23:06:48","guid":{"rendered":"https:\/\/docs.joedolson.com\/my-calendar-pro\/?p=110"},"modified":"2022-10-25T16:26:37","modified_gmt":"2022-10-25T16:26:37","slug":"rest-api-client","status":"publish","type":"post","link":"https:\/\/docs.joedolson.com\/my-calendar-pro\/rest-api-client\/","title":{"rendered":"REST API Client"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"848\" height=\"334\" src=\"https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-content\/uploads\/sites\/4\/2022\/04\/image-38.png\" alt=\"\" class=\"wp-image-112\" srcset=\"https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-content\/uploads\/sites\/4\/2022\/04\/image-38.png 848w, https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-content\/uploads\/sites\/4\/2022\/04\/image-38-300x118.png 300w, https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-content\/uploads\/sites\/4\/2022\/04\/image-38-768x302.png 768w\" sizes=\"auto, (max-width: 848px) 100vw, 848px\" \/><figcaption>Settings for REST API Clients<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If your site is a client, then the REST API is not enabled, but the user interface for adding your events to other site\u2019s is enabled. You will have an interface for adding endpoints, or URLs that this site can attempt to send events to.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Settings<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The API key entered for endpoints must be that provided by the API server. This is the default API key; if you\u2019re using multiple endpoints, each endpoint can have a unique API key.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>URL<\/strong>: The home URL for the My Calendar server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Label<\/strong>: The label that will be displayed in the user interface for selecting where to send events.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Author<\/strong>: The author ID that should be sent as the author on the remote site. This will probably not be an author ID that exists in your site, so you will need to be provided with an appropriate author for the target site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Key<\/strong>: The API key for the target API server. If left blank, queries will use the API key set globally.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Cross Posting Events<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"837\" height=\"187\" src=\"https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-content\/uploads\/sites\/4\/2022\/04\/image-39.png\" alt=\"\" class=\"wp-image-113\" srcset=\"https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-content\/uploads\/sites\/4\/2022\/04\/image-39.png 837w, https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-content\/uploads\/sites\/4\/2022\/04\/image-39-300x67.png 300w, https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-content\/uploads\/sites\/4\/2022\/04\/image-39-768x172.png 768w\" sizes=\"auto, (max-width: 837px) 100vw, 837px\" \/><figcaption>Cross posting events to remote sites<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">When the site is a client, any configured servers will be shown in the admin &#8216;Add Events&#8217; interface as options to select for target. The events will always also be added to the current site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Cross posting is not available from the public submissions form.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If your site is a client, then the REST API is not enabled, but the user interface for adding your events to other site\u2019s is enabled. You will have an interface for adding endpoints, or URLs that this site can attempt to send events to. Settings The API key entered for endpoints must be that [&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-110","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\/110","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=110"}],"version-history":[{"count":2,"href":"https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-json\/wp\/v2\/posts\/110\/revisions"}],"predecessor-version":[{"id":114,"href":"https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-json\/wp\/v2\/posts\/110\/revisions\/114"}],"wp:attachment":[{"href":"https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-json\/wp\/v2\/media?parent=110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-json\/wp\/v2\/categories?post=110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.joedolson.com\/my-calendar-pro\/wp-json\/wp\/v2\/tags?post=110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}