summaryrefslogtreecommitdiff
path: root/views/docs/syndication.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2017-01-06 11:00:34 -0800
committerAaron Parecki <aaron@parecki.com>2017-01-06 11:00:34 -0800
commit92615f6183c94c039d7591068768ae21ce6e0b11 (patch)
tree8eaf8a6a0a25eca5ee5c4a66f0b28cbffabca168 /views/docs/syndication.php
parentbdff359178d6696d1934a3e350d6cd1b33282251 (diff)
expand documentation
Diffstat (limited to 'views/docs/syndication.php')
-rw-r--r--views/docs/syndication.php38
1 files changed, 38 insertions, 0 deletions
diff --git a/views/docs/syndication.php b/views/docs/syndication.php
new file mode 100644
index 0000000..3452173
--- /dev/null
+++ b/views/docs/syndication.php
@@ -0,0 +1,38 @@
+<div class="narrow">
+ <?= partial('partials/header') ?>
+
+ <h2>Syndication Targets</h2>
+
+ <p>You can provide a list of supported <a href="https://www.w3.org/TR/micropub/#syndication-targets">syndication targets</a> that will appear as checkboxes when you are creating a new post.</p>
+
+ <p>To do this, your Micropub endpoint will need to respond to a GET request containing a query string of <code>q=syndicate-to</code>. This request will be made with the access token that was generated for this app, so you can choose which syndication targets you want to allow this app to use.</p>
+
+ <p>Below is the request and expected response that Quill looks for.</p>
+
+ <pre><code>GET /micropub?q=syndicate-to HTTP/1.1
+Authorization: Bearer xxxxxxxxxx
+
+HTTP/1.1 200 OK
+Content-type: application/json
+
+{
+ "syndicate-to": [
+ {
+ "uid": "https://twitter.com/aaronpk",
+ "name": "twitter.com/aaronpk"
+ },
+ {
+ "uid": "https://news.indieweb.org/en",
+ "name": "IndieNews"
+ }
+ ]
+}
+</code></pre>
+
+ <p>The specific values of names and uids are up to your Micropub endpoint, but a good convention is to use the domain name of the service (e.g. https://twitter.com), or domain name and username (e.g. https://twitter.com/aaronpk) for the uid, and a friendly name like "Twitter" or "twitter.com/aaronpk" as the name.</p>
+
+ <p>Quill will check for your supported syndication targets when you sign in, but there is also a link on the new post screen to manually re-check if you'd like.</p>
+
+ <p>When you create a post and tap one of the syndication options, the value of <code>uid</code> is sent in a property called <code>mp-syndicate-to</code>, which instructs your endpoint to syndicate to that target. Note that Quill doesn't know whether the target is Twitter, Facebook, or something else, and doesn't talk to the service directly. It's just an instruction to your endpoint to syndicate to that destination.</p>
+
+</div>