CINXE.COM

Generate new topics, posts and PM via IFTTT - Integrations - Discourse Meta

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Generate new topics, posts and PM via IFTTT - Integrations - Discourse Meta</title> <meta name="description" content="Want to use IFTTT to create new topics, posts and private messages? Let’s get started! Using Maker Webhooks of IFTTT service we can make Discourse API calls. For that we must generate API keys first. It can be generated&amp;hellip;"> <meta name="generator" content="Discourse 3.4.0.beta3-dev - https://github.com/discourse/discourse version 35be2a98795f9c6d374bef71afcfc9985284738e"> <link rel="icon" type="image/png" href="https://d11a6trkgmumsb.cloudfront.net/optimized/3X/b/3/b33be9538df3547fcf9d1a51a4637d77392ac6f9_2_32x32.png"> <link rel="apple-touch-icon" type="image/png" href="https://d11a6trkgmumsb.cloudfront.net/optimized/4X/b/1/2/b12885a6f292ceffc222608846855f25a272835b_2_180x180.jpeg"> <meta name="theme-color" media="all" content="#ffffff"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=yes, viewport-fit=cover"> <link rel="canonical" href="https://meta.discourse.org/t/generate-new-topics-posts-and-pm-via-ifttt/61336" /> <link rel="search" type="application/opensearchdescription+xml" href="https://meta.discourse.org/opensearch.xml" title="Discourse Meta Search"> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/color_definitions_default-light_34_331_0f6416a036b62d8cf6005ba0f75c1cdf64eca1ab.css?__ws=meta.discourse.org" media="all" rel="stylesheet" class="light-scheme"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/automation_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="automation" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/chat_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="chat" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/checklist_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="checklist" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-activity-pub_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-activity-pub" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-ai_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-ai" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-akismet_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-akismet" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-assign_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-assign" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-cakeday_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-cakeday" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-customer-flair-plugin_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-customer-flair-plugin" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-data-explorer_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-data-explorer" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-details_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-details" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-doc-categories_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-doc-categories" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-gamification_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-gamification" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-lazy-videos_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-lazy-videos" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-local-dates_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-local-dates" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-math_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-math" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-narrative-bot_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-narrative-bot" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-new-features-feeds_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-new-features-feeds" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-presence_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-presence" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-reactions_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-reactions" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-saved-searches_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-saved-searches" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-solved_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-solved" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-templates_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-templates" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-theme-install-button_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-theme-install-button" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-topic-voting_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-topic-voting" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-translator_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-translator" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-user-notes_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-user-notes" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-yearly-review_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-yearly-review" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/footnote_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="footnote" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/hosted-site_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="hosted-site" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/poll_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="poll" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/spoiler-alert_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="spoiler-alert" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/chat_desktop_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="chat_desktop" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-ai_desktop_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-ai_desktop" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-gamification_desktop_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-gamification_desktop" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-reactions_desktop_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-reactions_desktop" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/discourse-topic-voting_desktop_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="discourse-topic-voting_desktop" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/poll_desktop_a9f01aadcb165f2bc2e70ad5efb2bbab273a84af.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="poll_desktop" /> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_344_c1a0ea047e3231c95bd61b3ac3fa69203b31761f.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="344" data-theme-name="category banners"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_264_954e882d1846d08ce0cd4d43a2e02fd00cf1cf14.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="264" data-theme-name="custom header links (icons)"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_244_16ac182ecc28139d9a22755f908c2575bd6e367d.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="244" data-theme-name="dark-light toggle"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_129_6e2d0969992a3923565cebeb401306fd6cb2c0a5.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="129" data-theme-name="discotoc"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_334_94da25b41b69b1d3c250ee27eb33e5ff775a61b1.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="334" data-theme-name="discourse experiments"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_195_3bd098257bee71682be0b25898b0a194233f4462.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="195" data-theme-name="discourse gifs"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_171_7b810fae68bcf2aeb32a2def414517f0a7f1b337.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="171" data-theme-name="discourse icon"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_286_c9a4af058736c63862d951670aceeec73461a9df.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="286" data-theme-name="discourse mermaid"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_233_23854bd08e3bc4aec479c3348160caa4ff61f190.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="233" data-theme-name="dismissable hiring banner"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_222_f42eb4570da1997af8c9db106868d5c0597383e7.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="222" data-theme-name="docs card filter"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_304_813f099f6663b22d3399b17614be3ff7320ca12a.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="304" data-theme-name="experimental filter component"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_280_4c53630ef3c874b4ef190d65c00c7fcf1535f957.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="280" data-theme-name="full width"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_191_b2083d4c91ed61995ad36621f3e66d41470ebfd3.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="191" data-theme-name="github status indicators"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_341_9ad0d9f136d4489cd97e55a78b478548e6318707.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="341" data-theme-name="insert video"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_351_57bf61086867c326c6cc8f2496c2ccf6299757e8.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="351" data-theme-name="kanban board"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_356_90133d2d968df27e0445aec84fd06ce27e7a5eb1.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="356" data-theme-name="peek-mode-composer"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_180_66a81c6f29f8b9a9b056845549791f9310735d98.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="180" data-theme-name="placeholder forms"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_347_c76d2f6a09a97c7f151679a71c24e82159cc93aa.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="347" data-theme-name="reader mode"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_202_90d0f6b6965baf745873fb3d9d467a0196baa953.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="202" data-theme-name="reply template"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_247_b9dbe3ada4c3fdbcc7eab69452d6893453e4026a.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="247" data-theme-name="search banner (meta theme)"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_279_16354da8062f20b5caedb1248c2903f571d0348a.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="279" data-theme-name="sidebar theme toggle"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_343_e46187a6e13c6780979eb93fdbf9c3e4e88826a0.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="343" data-theme-name="tag banners"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_155_9e042fd9b4c432bd456d3f7b64a18e56d431da56.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="155" data-theme-name="tag icons"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_208_ea189863e2166af848d3188b371bd28fc39f653a.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="208" data-theme-name="team pm likes"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_184_dd4c369fa52a2d04a7fe7880d2750b35a6c09e5e.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="184" data-theme-name="topic thumbnails"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_230_91007c418c66db6b610e00c83abb5aae3dab0bfe.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="230" data-theme-name="unformatted code detector"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_236_eaac06a9efc85a1bccb06e807d26d5b6d1a78f49.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="236" data-theme-name="user card directory"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_309_bb234be166d81000feffc5a3caa24a14fbecdc60.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="309" data-theme-name="whisper warning"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_331_3853aeaeeb6e6500fd0820857a0788900b16abfc.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="331" data-theme-name="meta branded"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_320_6c4f21cac1ee04eee100156f46b4ebb50a2302b2.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="320" data-theme-name="centralhide"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_194_6c3e062411932593ad0c47bb908482082832bc96.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="194" data-theme-name="create-poll-first"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_379_a9fc68a4266bdf0600be2b6792bdc520dab79b23.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="379" data-theme-name="developer guides noedit"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_358_fe8d94b31d11656d3b8099eca92da80da6c65eda.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="358" data-theme-name="hide &#39;check doc&#39;"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_165_e6cc351794704f0c12a8e535fa1d544ec8e9fd3a.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="165" data-theme-name="hide sidebar for anon - hidden whispers for non-staff"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_22_49dbd977e3957fc1cb672e882d79a90c1bc5ff60.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="22" data-theme-name="hide team shield"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_298_465934afa6c49137f273834851b69a26071d9544.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="298" data-theme-name="logo avatar exception"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_350_5beff7aed667d1311b34803e697647c4e9dd99ff.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="350" data-theme-name="meta branded background adjustment for jobs banner"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_314_115cc000a19621b23544d3e0a2afb5dc67aee0d1.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="314" data-theme-name="rubik headings"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_267_211e22b851eb4fca1d46ecec6eb3c5e92b3da4d8.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="267" data-theme-name="tech advocate only group assign header button"/> <link href="https://d3bpeqsaub0i6y.cloudfront.net/stylesheets/desktop_theme_355_73b90d4127de649b212488aead88485c610ca4e3.css?__ws=meta.discourse.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="355" data-theme-name="topic voting customisations"/> <meta http-equiv="origin-trial" content="Avxkn9pqiyK+1F1LLCIuXTFKanihzkcBp9P63oOYbFG3xZdBX56KG7ffcvWPy2R1QrcGCtLSXEEx+BEz8m95+AwAAABTeyJvcmlnaW4iOiJodHRwczovL21ldGEuZGlzY291cnNlLm9yZzo0NDMiLCJmZWF0dXJlIjoiQmFkZ2luZyIsImV4cGlyeSI6MTU1NjIyNDYwM30="> <script defer="" src="https://d3bpeqsaub0i6y.cloudfront.net/theme-javascripts/8358edcf4ad774a90d2321d08d0cd1dae1595dbf.js?__ws=meta.discourse.org" data-theme-id="138" nonce="MDS39XuGZlIX687RYMNuD3fzo"></script> <script defer="" src="https://d3bpeqsaub0i6y.cloudfront.net/theme-javascripts/193ad8ec538d13f57e5e4a1ec02005a93ee82612.js?__ws=meta.discourse.org" data-theme-id="165" nonce="MDS39XuGZlIX687RYMNuD3fzo"></script> <script defer="" data-domain="meta.discourse.org" src="https://www.discourse.org/js/script.js" nonce="MDS39XuGZlIX687RYMNuD3fzo"></script> <link rel="alternate nofollow" type="application/rss+xml" title="RSS feed of &#39;Generate new topics, posts and PM via IFTTT&#39;" href="https://meta.discourse.org/t/generate-new-topics-posts-and-pm-via-ifttt/61336.rss" /> <meta property="og:site_name" content="Discourse Meta" /> <meta property="og:type" content="website" /> <meta name="twitter:card" content="summary" /> <meta name="twitter:image" content="https://d11a6trkgmumsb.cloudfront.net/original/3X/9/1/9165372a47fa7a7f88adf252d9e56f649bf01b6c.png" /> <meta property="og:image" content="https://d11a6trkgmumsb.cloudfront.net/original/3X/9/1/9165372a47fa7a7f88adf252d9e56f649bf01b6c.png" /> <meta property="og:url" content="https://meta.discourse.org/t/generate-new-topics-posts-and-pm-via-ifttt/61336" /> <meta name="twitter:url" content="https://meta.discourse.org/t/generate-new-topics-posts-and-pm-via-ifttt/61336" /> <meta property="og:title" content="Generate new topics, posts and PM via IFTTT" /> <meta name="twitter:title" content="Generate new topics, posts and PM via IFTTT" /> <meta property="og:description" content="Want to use IFTTT to create new topics, posts and private messages? Let’s get started! Using Maker Webhooks of IFTTT service we can make Discourse API calls. For that we must generate API keys first. It can be generated using the API admin tab. Also we can generate user specific API keys through user admin pages. Now create new applet on IFTTT and then choose your favorite trigger service. Now I am using Google Calendar service for example. T..." /> <meta name="twitter:description" content="Want to use IFTTT to create new topics, posts and private messages? Let’s get started! Using Maker Webhooks of IFTTT service we can make Discourse API calls. For that we must generate API keys first. It can be generated using the API admin tab. Also we can generate user specific API keys through user admin pages. Now create new applet on IFTTT and then choose your favorite trigger service. Now I am using Google Calendar service for example. T..." /> <meta property="og:article:section" content="Documentation" /> <meta property="og:article:section:color" content="00A94F" /> <meta property="og:article:section" content="Integrations" /> <meta property="og:article:section:color" content="008040" /> <meta property="og:article:tag" content="how-to" /> <meta property="og:article:tag" content="tasks" /> <meta name="twitter:label1" value="Reading time" /> <meta name="twitter:data1" value="2 mins 🕑" /> <meta name="twitter:label2" value="Likes" /> <meta name="twitter:data2" value="26 ❤" /> <meta property="article:published_time" content="2017-04-20T16:30:45+00:00" /> <meta property="og:ignore_canonical" content="true" /> </head> <body class="crawler browser-update"> <script defer="" src="https://d3bpeqsaub0i6y.cloudfront.net/theme-javascripts/9d47b17844deb1f0d39090eda883f1a2b447e4c5.js?__ws=meta.discourse.org" data-theme-id="266" nonce="MDS39XuGZlIX687RYMNuD3fzo"></script> <header> <a href="/"> Discourse Meta </a> </header> <div id="main-outlet" class="wrap" role="main"> <div id="topic-title"> <h1> <a href="/t/generate-new-topics-posts-and-pm-via-ifttt/61336">Generate new topics, posts and PM via IFTTT</a> </h1> <div class="topic-category" itemscope itemtype="http://schema.org/BreadcrumbList"> <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a href="/c/documentation/integrations/167" class="badge-wrapper bullet" itemprop="item"> <span class='badge-category-bg' style='background-color: #00A94F'></span> <span class='badge-category clear-badge'> <span class='category-name' itemprop='name'>Documentation</span> </span> </a> <meta itemprop="position" content="1" /> </span> <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a href="/c/documentation/integrations/167" class="badge-wrapper bullet" itemprop="item"> <span class='badge-category-bg' style='background-color: #008040'></span> <span class='badge-category clear-badge'> <span class='category-name' itemprop='name'>Integrations</span> </span> </a> <meta itemprop="position" content="2" /> </span> </div> <div class="topic-category"> <div class='discourse-tags list-tags'> <a href='https://meta.discourse.org/tag/how-to' class='discourse-tag' rel="tag">how-to</a>, <a href='https://meta.discourse.org/tag/tasks' class='discourse-tag' rel="tag">tasks</a> </div> </div> </div> <div itemscope itemtype='http://schema.org/DiscussionForumPosting'> <meta itemprop='headline' content='Generate new topics, posts and PM via IFTTT'> <link itemprop='url' href='https://meta.discourse.org/t/generate-new-topics-posts-and-pm-via-ifttt/61336'> <meta itemprop='datePublished' content='2017-04-20T16:30:45Z'> <meta itemprop='articleSection' content='Integrations'> <meta itemprop='keywords' content='how-to, tasks'> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Civilized Discourse Construction Kit, Inc.'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://d11a6trkgmumsb.cloudfront.net/original/3X/a/d/ad2526334012b2ad0c3421f9b6dd94bae2ede52f.svg'> </div> </div> <div id='post_1' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://meta.discourse.org/u/Discourse'><span itemprop='name'>Discourse</span></a> </span> <link itemprop="mainEntityOfPage" href="https://meta.discourse.org/t/generate-new-topics-posts-and-pm-via-ifttt/61336"> <link itemprop="image" href="https://d11a6trkgmumsb.cloudfront.net/original/3X/9/1/9165372a47fa7a7f88adf252d9e56f649bf01b6c.png"> <span class="crawler-post-infos"> <time datetime='2017-04-20T16:30:45Z' class='post-time'> April 20, 2017, 4:30pm </time> <meta itemprop='dateModified' content='2024-05-26T06:54:38Z'> <span itemprop='position'>1</span> </span> </div> <div class='post' itemprop='text'> <p>Want to use <a href="https://ifttt.com/">IFTTT</a> to create new topics, posts and private messages? Let’s get started!</p> <p>Using <a href="https://ifttt.com/maker_webhooks">Maker Webhooks</a> of IFTTT service we can make <a href="http://docs.discourse.org">Discourse API</a> calls. For that we must generate API keys first. It can be generated using the API admin tab.</p> <p> <a href="https://d11a6trkgmumsb.cloudfront.net/optimized/3X/9/1/9165372a47fa7a7f88adf252d9e56f649bf01b6c_1_690x143.png" target="_blank" rel="noopener" class="onebox"> <img src="https://d11a6trkgmumsb.cloudfront.net/optimized/3X/9/1/9165372a47fa7a7f88adf252d9e56f649bf01b6c_1_690x143.png" width="690" height="143"> </a> </p> <p>Also we can generate user specific API keys through user admin pages.</p> <p>Now <a href="https://ifttt.com/create">create new applet</a> on IFTTT and then choose your favorite trigger service. Now I am using <a href="https://ifttt.com/create/connect-google_calendar?sid=1">Google Calendar</a> service for example.</p> <p><img src="https://d11a6trkgmumsb.cloudfront.net/original/3X/3/4/341b41d93de97b271496b99dcc53d21df4089ac4.png" width="591" height="409"></p> <p>Then I am choosing <strong>Any new event added</strong> trigger.</p> <p><div class="lightbox-wrapper"><a class="lightbox" href="https://d11a6trkgmumsb.cloudfront.net/original/3X/a/9/a92552c97474e03de602f8f5b134e4d3929bc76b.png" data-download-href="/uploads/short-url/o8kELoTiJZ0guhWEIMMq6ikI98T.png?dl=1" title="screenshot-ifttt.com-2017-04-20-21-04-22.png"><img src="https://d11a6trkgmumsb.cloudfront.net/original/3X/a/9/a92552c97474e03de602f8f5b134e4d3929bc76b.png" width="690" height="330" data-dominant-color="89ADFC"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">screenshot-ifttt.com-2017-04-20-21-04-22.png</span><span class="informations">985×472 23.6 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p> <p>To connect your trigger with Discourse choose <strong>Maker Webhooks</strong> as action service and <strong>Make a web request</strong> action.</p> <p><div class="lightbox-wrapper"><a class="lightbox" href="https://d11a6trkgmumsb.cloudfront.net/original/3X/c/9/c9522a31c798594cadafc8f3962b0eb4cccc6a13.png" data-download-href="/uploads/short-url/sIY0y8hd82kzZkqk7Jrv7ozom8r.png?dl=1" title="screenshot-ifttt.com-2017-04-20-21-05-36.png"><img src="https://d11a6trkgmumsb.cloudfront.net/original/3X/c/9/c9522a31c798594cadafc8f3962b0eb4cccc6a13.png" width="681" height="500" data-dominant-color="E5F4D7"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">screenshot-ifttt.com-2017-04-20-21-05-36.png</span><span class="informations">697×511 16.9 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p> <p>Now fill the action fields as below.</p> <ul> <li> <p><strong>URL (required):</strong> <code>https://discourse.example.com/posts/?api_key=[YOUR_API_KEY]&amp;api_username=[API_USERNAME]</code></p> </li> <li> <p><strong>Method (required):</strong> <code>POST</code></p> </li> <li> <p><strong>Content Type:</strong> <code>application/json</code></p> </li> <li> <p><strong>Body:</strong></p> </li> </ul> <pre data-code-wrap="json"><code class="lang-json">{ "title": "{{Title}}", "raw": "{{Description}}\n\nPlace: {{Where}}\nAt: {{Starts}} - {{Ends}}", "category": 4, "created_at": "{{CreatedAt}}" } </code></pre> <p><div class="lightbox-wrapper"><a class="lightbox" href="https://d11a6trkgmumsb.cloudfront.net/original/3X/7/7/77365735ed9f95d460f2de4c16bcb13dbfda9ea0.png" data-download-href="/uploads/short-url/h0Bf5l6dLnctJ0iRT2hvhsuZ9WU.png?dl=1" title="screenshot-ifttt.com-2017-04-20-21-25-33.png"><img src="https://d11a6trkgmumsb.cloudfront.net/optimized/3X/7/7/77365735ed9f95d460f2de4c16bcb13dbfda9ea0_2_194x500.png" width="194" height="500" srcset="https://d11a6trkgmumsb.cloudfront.net/optimized/3X/7/7/77365735ed9f95d460f2de4c16bcb13dbfda9ea0_2_194x500.png, https://d11a6trkgmumsb.cloudfront.net/optimized/3X/7/7/77365735ed9f95d460f2de4c16bcb13dbfda9ea0_2_291x750.png 1.5x, https://d11a6trkgmumsb.cloudfront.net/optimized/3X/7/7/77365735ed9f95d460f2de4c16bcb13dbfda9ea0_2_388x1000.png 2x" data-dominant-color="92D94B"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">screenshot-ifttt.com-2017-04-20-21-25-33.png</span><span class="informations">507×1304 74.2 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p> <p>In body text you can see many fields with double brackets <code>{{ }}</code>. Those fields (content sources) will vary with every service triggers. Choose it from <strong>Ingredient</strong> button below.</p> <p>You can edit <code>title</code> and <code>raw</code> fields in JSON body however you need with surrounded texts. Find category id from your site’s <code>/site.json</code> URL and put it on category field. Now click <strong>Create action</strong> button to create the applet. After the applet creation it may take some time to be live.</p> <p>It’s done <img src="https://emoji.discourse-cdn.com/twitter/sunglasses.png?v=12" title=":sunglasses:" class="emoji" alt=":sunglasses:" loading="lazy" width="20" height="20">. Now a new topic will be created whenever a new event created on your Google Calendar <img src="https://emoji.discourse-cdn.com/twitter/calendar_spiral.png?v=12" title=":calendar_spiral:" class="emoji" alt=":calendar_spiral:" loading="lazy" width="20" height="20">.</p> <hr> <p>To create a post reply to an existing topic instead of new topic creation the body text should be changed as below (<code>topic_id</code> instead of <code>category</code>)</p> <pre><code class="lang-plaintext">{ "title": "{{Title}}", "raw": "{{Description}}\n\nPlace: {{Where}}\nAt: {{Starts}} - {{Ends}}", "topic_id": 4, "created_at": "{{CreatedAt}}" } </code></pre> <p>To create new private message</p> <pre><code class="lang-plaintext">{ "title": "{{Title}}", "raw": "{{Description}}\n\nPlace: {{Where}}\nAt: {{Starts}} - {{Ends}}", "target_usernames": "discourse1,discourse2", "archetype": "private_message", "created_at": "{{CreatedAt}}" } </code></pre> <p>In this same method you can make Discourse API requests by any other <a href="https://ifttt.com/search/services">IFTTT action services</a>.</p><blockquote class="discourse-automation"> <p>Last edited by <a class="mention" href="/u/jammydodger">@JammyDodger</a> <span data-date="2024-05-26" data-time="06:54:38" class="discourse-local-date" data-timezone="UTC" data-email-preview="2024-05-26T06:54:38Z UTC">2024-05-26T06:54:38Z</span></p> <details><summary>Check document</summary>Perform check on document: <input type="button" value="Done" class="btn btn-checked"></details> </blockquote> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="22" /> <span class='post-likes'>22 Likes</span> </div> <div class='crawler-linkback-list' itemscope itemtype='http://schema.org/ItemList'> <div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <a itemprop='url' href="https://meta.discourse.org/t/create-automate-topics-from-youtube-video/66366/2">Create automate Topics from Youtube Video?</a> <meta itemprop='position' content='10'> </div> <div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <a itemprop='url' href="https://meta.discourse.org/t/plugin-for-auto-posting-to-social-media/92386/7">Plugin for auto posting to social media?</a> <meta itemprop='position' content='11'> </div> <div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <a itemprop='url' href="https://meta.discourse.org/t/two-way-sync-chat-with-discourse/176996/4">Two-way sync chat with discourse</a> <meta itemprop='position' content='12'> </div> <div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <a itemprop='url' href="https://meta.discourse.org/t/n8n-support-for-discourse-automation-tool/176053/3">N8n support for Discourse - Automation Tool</a> <meta itemprop='position' content='13'> </div> <div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <a itemprop='url' href="https://meta.discourse.org/t/is-there-a-way-to-integrate-with-ifttt/133136/2">Is there a way to integrate with IFTTT</a> <meta itemprop='position' content='14'> </div> </div> </div> <div id='post_2' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://meta.discourse.org/u/eextra'><span itemprop='name'>eextra</span></a> (Sylwia) </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2020-04-17T11:22:34Z' class='post-time'> April 17, 2020, 11:22am </time> <meta itemprop='dateModified' content='2020-04-17T11:22:34Z'> <span itemprop='position'>2</span> </span> </div> <div class='post' itemprop='text'> <aside class="quote group-team" data-username="vinothkannans" data-post="1" data-topic="61336"> <div class="title"> <div class="quote-controls"></div> <img loading="lazy" alt="" width="24" height="24" src="https://d3bpeqsaub0i6y.cloudfront.net/user_avatar/meta.discourse.org/vinothkannans/48/86465_2.png" class="avatar"> vinothkannans:</div> <blockquote> <p>Now <a href="https://ifttt.com/create" rel="noopener nofollow ugc">create new applet</a></p> </blockquote> </aside> <p>I wonder if this option is no longer free and only available as a premium for developers ?</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="1" /> <span class='post-likes'>1 Like</span> </div> </div> <div id='post_3' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://meta.discourse.org/u/b4oshany'><span itemprop='name'>b4oshany</span></a> (Oshane Bailey) </span> <link itemprop="image" href="https://d11a6trkgmumsb.cloudfront.net/original/3X/9/f/9fb69f3bc83ad8bff56975b2efc0b3361e91d6b9.png"> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2020-10-10T15:14:17Z' class='post-time'> October 10, 2020, 3:14pm </time> <meta itemprop='dateModified' content='2020-10-10T15:14:17Z'> <span itemprop='position'>3</span> </span> </div> <div class='post' itemprop='text'> <p>Based on the <a href="https://docs.discourse.org/#tag/Posts/paths/~1posts.json/post">Discourse API documentation</a>, the <code>Api_username</code> and <code>Api_key</code> must be sent over HTTP request headers. Sending them as a GET params won’t work.</p> <p><div class="lightbox-wrapper"><a class="lightbox" href="https://d11a6trkgmumsb.cloudfront.net/original/3X/9/f/9fb69f3bc83ad8bff56975b2efc0b3361e91d6b9.png" data-download-href="/uploads/short-url/mMTbnVF8eshJQDkxdTXjrcx2mvv.png?dl=1" title="image" rel="noopener nofollow ugc"><img src="https://d11a6trkgmumsb.cloudfront.net/optimized/3X/9/f/9fb69f3bc83ad8bff56975b2efc0b3361e91d6b9_2_690x482.png" alt="image" data-base62-sha1="mMTbnVF8eshJQDkxdTXjrcx2mvv" width="690" height="482" srcset="https://d11a6trkgmumsb.cloudfront.net/optimized/3X/9/f/9fb69f3bc83ad8bff56975b2efc0b3361e91d6b9_2_690x482.png, https://d11a6trkgmumsb.cloudfront.net/original/3X/9/f/9fb69f3bc83ad8bff56975b2efc0b3361e91d6b9.png 1.5x, https://d11a6trkgmumsb.cloudfront.net/original/3X/9/f/9fb69f3bc83ad8bff56975b2efc0b3361e91d6b9.png 2x" data-small-upload="https://d11a6trkgmumsb.cloudfront.net/optimized/3X/9/f/9fb69f3bc83ad8bff56975b2efc0b3361e91d6b9_2_10x10.png"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use xlink:href="#far-image"></use></svg><span class="filename">image</span><span class="informations">967×676 60.9 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use xlink:href="#discourse-expand"></use></svg></div></a></div></p> <p>I tried and it failed. Therefore, I had wasn’t able to use IFTTT as it was instructed here…</p> <p>However, I ended up writing a simple custom PHP script that acts as a relay hook that will allow data to be sent to discourse with the proper configuration.</p> <h5>Code</h5> <pre><code class="lang-php">&lt;?php header('Content-Type: application/json'); //Make sure that it is a POST request. if (strcasecmp($_SERVER['REQUEST_METHOD'], 'POST') != 0) { echo json_encode(array("error" =&gt; 'Request method must be POST!')); } //Make sure that the content type of the POST request has been set to application/json $contentType = isset($_SERVER["CONTENT_TYPE"]) ? trim($_SERVER["CONTENT_TYPE"]) : ''; if (strcasecmp($contentType, 'application/json') != 0) { echo json_encode(array("error" =&gt; 'Content type must be: application/json')); } //Receive the RAW post data. $content = trim(file_get_contents("php://input")); //Attempt to decode the incoming RAW post data from JSON. $payload = json_decode($content, true); //If json_decode failed, the JSON is invalid. if (!is_array($payload)) { echo json_encode(array("error" =&gt; 'Received content contained invalid JSON!')); die(); } if (empty($payload['discourse_endpoint'])) { echo json_encode(array("error" =&gt; 'Discourse endpoint must be provided in the json body!')); die(); } if (empty($payload['api_key'])) { echo json_encode(array("error" =&gt; 'Discourse API Key must be provided in the json body!')); die(); } if (empty($payload['api_username'])) { echo json_encode(array("error" =&gt; 'Discourse API User must be provided in the json body!')); die(); } $discourse_endpoint = $payload['discourse_endpoint']; $api_key = $payload['api_key']; $api_user = $payload['api_username']; unset($payload['discourse_endpoint']); unset($payload['api_key']); unset($payload['api_username']); $data_string = json_encode($payload); $ch = curl_init($discourse_endpoint); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', "Api-key: $api_key", "Api-username: $api_user", 'Content-Length: ' . strlen($data_string) )); $result = curl_exec($ch); echo $result; ?&gt; </code></pre> <p>You can read more about it here: <a href="https://community.jamaicans.dev/t/generate-new-topics-posts-and-pm-via-discourse-relay-api-script/176" class="inline-onebox" rel="noopener nofollow ugc">Generate new topics, posts and PM via Discourse Relay API Script - discourse - Jamaican Developers Community Forum</a></p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="2" /> <span class='post-likes'>2 Likes</span> </div> </div> <div id='post_4' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://meta.discourse.org/u/cogdog'><span itemprop='name'>cogdog</span></a> (Alan Levine) </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2023-03-20T15:43:13Z' class='post-time'> March 20, 2023, 3:43pm </time> <meta itemprop='dateModified' content='2023-03-20T15:43:13Z'> <span itemprop='position'>4</span> </span> </div> <div class='post' itemprop='text'> <p>I am in the same boat here trying to set up an IFTTT applet to post items bookmarked a certain tag in Pinboard (I have other applets posting to Mastodon where I am able to pass a token as a header item rather than GET parameters).</p> <p>My mediocre PHP chops fully see how your code works, my question being less knowledgable of the discourse server, is where can I place the script? Does it need to be on same server to avoid CORS issues?</p> <p>Or should I be looking at some other integration middle platform than IFTTT?</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_5' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://meta.discourse.org/u/ClawdiaWolf'><span itemprop='name'>ClawdiaWolf</span></a> (Claudia) </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2023-03-22T12:18:23Z' class='post-time'> March 22, 2023, 12:18pm </time> <meta itemprop='dateModified' content='2023-03-22T12:18:23Z'> <span itemprop='position'>5</span> </span> </div> <div class='post' itemprop='text'> <aside class="quote no-group" data-username="cogdog" data-post="4" data-topic="61336"> <div class="title"> <div class="quote-controls"></div> <img loading="lazy" alt="" width="24" height="24" src="https://d3bpeqsaub0i6y.cloudfront.net/user_avatar/meta.discourse.org/cogdog/48/116536_2.png" class="avatar"> Alan Levine:</div> <blockquote> <p>My mediocre PHP chops fully see how your code works, my question being less knowledgable of the discourse server, is where can I place the script? Does it need to be on same server to avoid CORS issues?</p> </blockquote> </aside> <p>It just needs to be hosted on a server that can accept the request from IFTTT <em>and</em> can talk to your Discourse instance via the curl functions. It just initiates the same type of request that the Dsicourse web interface would. <img src="https://emoji.discourse-cdn.com/twitter/slight_smile.png?v=12" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="1" /> <span class='post-likes'>1 Like</span> </div> </div> <div id='post_6' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://meta.discourse.org/u/cogdog'><span itemprop='name'>cogdog</span></a> (Alan Levine) </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2023-03-23T22:43:21Z' class='post-time'> March 23, 2023, 10:43pm </time> <meta itemprop='dateModified' content='2023-03-23T22:43:21Z'> <span itemprop='position'>6</span> </span> </div> <div class='post' itemprop='text'> <p>Thanks. Looks like I have access to Zapier which has better integrations.</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> </div> <div id="related-topics" class="more-topics__list " role="complementary" aria-labelledby="related-topics-title"> <h3 id="related-topics-title" class="more-topics__list-title"> Related topics </h3> <div class="topic-list-container" itemscope itemtype='http://schema.org/ItemList'> <meta itemprop='itemListOrder' content='http://schema.org/ItemListOrderDescending'> <table class='topic-list'> <thead> <tr> <th>Topic</th> <th></th> <th class="replies">Replies</th> <th class="views">Views</th> <th>Activity</th> </tr> </thead> <tbody> <tr class="topic-list-item" id="topic-list-item-274354"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='1'> <span class="link-top-line"> <a itemprop='url' href='https://meta.discourse.org/t/discourse-rest-api-comprehensive-examples/274354' class='title raw-link raw-topic-link'>Discourse REST API comprehensive examples</a> </span> <div class="link-bottom-line"> <a href='/c/documentation/developer-guides/56' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #00A94F'></span> <span class='badge-category clear-badge'> <span class='category-name'>Developer Guides</span> </span> </a> <div class="discourse-tags"> <a href='https://meta.discourse.org/tag/rest-api' class='discourse-tag'>rest-api</a> ,&nbsp; <a href='https://meta.discourse.org/tag/how-to' class='discourse-tag'>how-to</a> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>21</span> </td> <td class="views"> <span class='views' title='views'>3540</span> </td> <td> October 13, 2024 </td> </tr> <tr class="topic-list-item" id="topic-list-item-92386"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='2'> <span class="link-top-line"> <a itemprop='url' href='https://meta.discourse.org/t/plugin-for-auto-posting-to-social-media/92386' class='title raw-link raw-topic-link'>Plugin for auto posting to social media?</a> </span> <div class="link-bottom-line"> <a href='/c/support/6' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #ce96c9'></span> <span class='badge-category clear-badge'> <span class='category-name'>Support</span> </span> </a> <div class="discourse-tags"> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>14</span> </td> <td class="views"> <span class='views' title='views'>4032</span> </td> <td> April 29, 2023 </td> </tr> <tr class="topic-list-item" id="topic-list-item-48536"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='3'> <span class="link-top-line"> <a itemprop='url' href='https://meta.discourse.org/t/user-api-keys-specification/48536' class='title raw-link raw-topic-link'>User API keys specification</a> </span> <div class="link-bottom-line"> <a href='/c/documentation/developer-guides/56' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #00A94F'></span> <span class='badge-category clear-badge'> <span class='category-name'>Developer Guides</span> </span> </a> <div class="discourse-tags"> <a href='https://meta.discourse.org/tag/rest-api' class='discourse-tag'>rest-api</a> ,&nbsp; <a href='https://meta.discourse.org/tag/reference' class='discourse-tag'>reference</a> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>65</span> </td> <td class="views"> <span class='views' title='views'>31151</span> </td> <td> June 1, 2024 </td> </tr> <tr class="topic-list-item" id="topic-list-item-148676"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='4'> <span class="link-top-line"> <a itemprop='url' href='https://meta.discourse.org/t/api-post-for-new-user/148676' class='title raw-link raw-topic-link'>API POST for New User</a> </span> <div class="link-bottom-line"> <a href='/c/dev/7' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #292929'></span> <span class='badge-category clear-badge'> <span class='category-name'>Dev</span> </span> </a> <div class="discourse-tags"> <a href='https://meta.discourse.org/tag/rest-api' class='discourse-tag'>rest-api</a> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>22</span> </td> <td class="views"> <span class='views' title='views'>2157</span> </td> <td> April 23, 2020 </td> </tr> <tr class="topic-list-item" id="topic-list-item-283570"> <td class="main-link" itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <meta itemprop='position' content='5'> <span class="link-top-line"> <a itemprop='url' href='https://meta.discourse.org/t/create-a-discourse-user-from-a-zapier-request/283570' class='title raw-link raw-topic-link'>Create a Discourse user from a Zapier request</a> </span> <div class="link-bottom-line"> <a href='/c/dev/7' class='badge-wrapper bullet'> <span class='badge-category-bg' style='background-color: #292929'></span> <span class='badge-category clear-badge'> <span class='category-name'>Dev</span> </span> </a> <div class="discourse-tags"> <a href='https://meta.discourse.org/tag/rest-api' class='discourse-tag'>rest-api</a> </div> </div> </td> <td class="replies"> <span class='posts' title='posts'>13</span> </td> <td class="views"> <span class='views' title='views'>719</span> </td> <td> January 5, 2024 </td> </tr> </tbody> </table> </div> </div> </div> <footer class="container wrap"> <nav class='crawler-nav'> <ul> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/' itemprop="url">Home </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/categories' itemprop="url">Categories </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/guidelines' itemprop="url">Guidelines </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/tos' itemprop="url">Terms of Service </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='https://www.discourse.org/privacy' itemprop="url">Privacy Policy </a> </span> </li> </ul> </nav> <p class='powered-by-link'>Powered by <a href="https://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p> </footer> <div class="buorg"><div>Unfortunately, <a href="https://www.discourse.org/faq/#browser">your browser is unsupported</a>. Please <a href="https://browsehappy.com">switch to a supported browser</a> to view rich content, log in and reply.</div></div> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10