52°F

Aaron Parecki

  • Articles
  • Notes
  • Photos
  • Day 97: Updated Known's Micropub Support #100DaysOfIndieWeb

    March 27, 2017

    I think this is the first time in the 100days project that I've worked on a project that is not my own! Today I added support for JSON requests to Known's Micropub endpoint. I also added support for JSON checkins that OwnYourSwarm sends.

    I tried writing as little code as I could, and changing as little as possible about how it worked, so essentially I am just extracting the properties it knows about from the JSON request to the variables the plugin expects to find. This does mean that a few Micropub JSON features are still not supported, such as sending HTML content (Known seems to strip HTML tags from all content sent to it), and Known doesn't provide a mechanism for storing arbitrary nested JSON objects. However, I was able to get it to pass tests 200, 201 and 203 from the micropub.rocks test suite, which is enough for basic support. 

    It also is able to create checkins from the payload that OwnYourSwarm sends! I also made it download the photo that is attached to a checkin, rather than hotlink the Foursquare image URL.

    Since I don't have commit access to the Known repo, I sent a pull request to Known with these changes. I tested everything with a local Known installation. Hopefully benwerd or mapkyca can merge the PR soon!

    Hopefully this improves people's experience using tools like OwnYourSwarm and OwnYourGram with Known!

    Portland, Oregon
    Mon, Mar 27, 2017 3:33pm -07:00 #100daysofindieweb #known #micropub #ownyourswarm
    2 likes 2 replies 2 mentions
    • Ryan Barrett
    • Chris Aldrich
    • Jeremy Cherfas stream.jeremycherfas.net/profile/jeremy
      Really interested in being able to use Foursquare to log where I am and have the additional detail show up on my Known site.
      Tue, Mar 28, 2017 6:06am +00:00
    • Jonathan LaCour cleverdevil.io/profile/cleverdevil

      This sounds great. I wish Known had even deeper support, but this is a good start. Thanks Aaron :)

      Mon, Mar 27, 2017 11:34pm +00:00

    Other Mentions

    • Aaron Parecki aaronparecki.com
      My 2017 Year in Review
      Thu, Jan 4, 2018 2:40pm -08:00
    • 100 Days of IndieWeb aaronparecki.com/tag/100daysofindieweb
      Day 97: Updated Known's Micropub Support #100DaysOfIndieWeb: aaronparecki.com/2017/03/27/9/d…
      Mon, Mar 27, 2017 10:33pm +00:00 (via brid-gy.appspot.com)
Posted in /articles using quill.p3k.io

Hi, I'm Aaron Parecki, Director of Identity Standards at Okta, and co-founder of IndieWebCamp. I maintain oauth.net, write and consult about OAuth, and participate in the OAuth Working Group at the IETF. I also help people learn about video production and livestreaming. (detailed bio)

I've been tracking my location since 2008 and I wrote 100 songs in 100 days. I've spoken at conferences around the world about owning your data, OAuth, quantified self, and explained why R is a vowel. Read more.

  • Director of Identity Standards at Okta
  • IndieWebCamp Founder
  • OAuth WG Editor
  • OpenID Board Member

  • 🎥 YouTube Tutorials and Reviews
  • 🏠 We're building a triplex!
  • ⭐️ Life Stack
  • ⚙️ Home Automation
  • All
  • Articles
  • Bookmarks
  • Notes
  • Photos
  • Replies
  • Reviews
  • Trips
  • Videos
  • Contact
© 1999-2025 by Aaron Parecki. Powered by p3k. This site supports Webmention.
Except where otherwise noted, text content on this site is licensed under a Creative Commons Attribution 3.0 License.
IndieWebCamp Microformats Webmention W3C HTML5 Creative Commons
WeChat ID
aaronpk_tv