From 89afcc13490b7f89ddd1301394acef34682d52b2 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 27 Dec 2014 00:08:47 +0000 Subject: add privacy policy stub --- views/creating-a-micropub-endpoint.php | 10 +++++----- views/privacy.php | 12 ++++++++++++ 2 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 views/privacy.php (limited to 'views') diff --git a/views/creating-a-micropub-endpoint.php b/views/creating-a-micropub-endpoint.php index d911ce6..4da9510 100644 --- a/views/creating-a-micropub-endpoint.php +++ b/views/creating-a-micropub-endpoint.php @@ -18,7 +18,7 @@ The example code here is written in PHP but the idea is applicable in any langua The request will contain the following POST parameters: * `h=entry` - Indicates the type of object being created, in this case an h-entry. -* `content` - The text content the user entered, in this case the caption on the Instagram photo. +* `content` - The text content the user entered * `category` - A comma-separated list of tags that you entered * `location` - A "geo" URI including the latitude and longitude of the photo if included. (Will look like `geo:37.786971,-122.399677;u=50`, where u=50 indicates the "uncertainty" of the location in meters) * `in-reply-to` - If set, this is a URL that the post is in reply to @@ -32,11 +32,11 @@ Authorization: Bearer XXXXXXXX ### Verifying Access Tokens -Before you can begin processing the photo, you must first verify the access token is valid +Before you can begin processing the request, you must first verify the access token is valid and contains at least the "post" scope. How exactly you do this is dependent on your architecture. You can query the token endpoint -to check if an access token is still valid. See [https://tokens.indieauth.com/#verify tokens.indieauth.com] +to check if an access token is still valid. See tokens.indieauth.com for more information. Once you have looked up the token info, you need to make a determination @@ -58,7 +58,7 @@ one that can create posts on your website. A valid request to create a post will contain the parameters listed above. For now, you can verify the presence of everything in the list, or you can try to genericize your -micropub endpoint so that it can also create [http://ownyourgram.com/creating-a-micropub-endpoint photo posts]. +micropub endpoint so that it can also create photo posts. At a bare minimum, a Micropub request will contain the following: @@ -91,4 +91,4 @@ and optionally an HTML or other body with more information. Below is a list of p - \ No newline at end of file + diff --git a/views/privacy.php b/views/privacy.php new file mode 100644 index 0000000..acdf235 --- /dev/null +++ b/views/privacy.php @@ -0,0 +1,12 @@ +
+ + +

Privacy Policy

+ +

Quill enables you to post text, bookmarks and likes to your own wbesite

+ +

Quill does not store your posts itself, but does cache the last response from your website and provides it to you for debugging purposes.

+ +

If you connect Quill to your Facebook or Twitter account, Quill can post to those sites on your behalf. Quill will never post anything to your accounts without an explicit action on your part.

+ +
-- cgit v1.2.3 From 7071565345cf00ffcc942947e941f59b5093476b Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Fri, 2 Jan 2015 13:21:54 -0800 Subject: use php array syntax in docs --- views/docs.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'views') diff --git a/views/docs.php b/views/docs.php index 94856a1..63d0ce1 100644 --- a/views/docs.php +++ b/views/docs.php @@ -46,10 +46,10 @@ Authorization: Bearer xxxxxxxxxx HTTP/1.1 200 OK Content-type: application/x-www-form-urlencoded -syndicate-to=syndicate-to=twitter.com%2Faaronpk%2Cfacebook.com%2Faaronpk +syndicate-to[]=twitter.com%2Faaronpk&syndicate-to[]=facebook.com%2Faaronpk -

The response should be a form-encoded reply with a single field, syndicate-to. The value is a comma-separated list of syndication targets. The actual values are up to your Micropub endpoint, but a good convention is to use the domain name of the service (e.g. twitter.com), or domain name and username (e.g. twitter.com/aaronpk).

+

The response should be a form-encoded reply with an array, syndicate-to of all the supported syndication targets. The actual values are up to your Micropub endpoint, but a good convention is to use the domain name of the service (e.g. twitter.com), or domain name and username (e.g. twitter.com/aaronpk).

If you do include the domain name, Quill will be able to show icons for recognized services next to the checkboxes.

@@ -57,4 +57,4 @@ syndicate-to=syndicate-to=twitter.com%2Faaronpk%2Cfacebook.com%2Faaronpk - \ No newline at end of file + -- cgit v1.2.3