Dabbling with the Mastodon API

I’ve been meaning to get all the stuff that used to be automated to Twitter to work with Mastodon. I took about 15 minutes1 after reading a Mastodon-related post from Alan to mess around and see what I could figure out. Now I’ve got 15 minutes to write it down. Consider that half an hour […]

Read More… from Dabbling with the Mastodon API

Google Sheets JSON the Long Way

Ever since Google turned off direct access to the JSON data from Google Sheets, I’ve used a couple of App Script workarounds. They were a bit clumsy for what I was doing but better than re-writing the entire page. I find going through the whole oAuth and Google project process to be more hassle than […]

Read More… from Google Sheets JSON the Long Way

Gravity Forms, Open Street Map API, and Leaflet JS

I’m sketching this one out because it’s a fun mix of things. I’m going to use Gravity Forms to accept submissions, the Open Street Map API will convert the address into latitude/longitude, and then we’ll display the data on a Leaflet JS map. I could have done it all in Google but I was irritated […]

Read More… from Gravity Forms, Open Street Map API, and Leaflet JS

Panopto API meets WordPress

Imagine you have some longer training videos but it’d be useful to provide discrete chunks. You might also want to provide some additional contextual information for particular video portions. Well, we wanted to be able to do that.1 This example uses the Panopto embed API and the Advanced Custom Fields repeater field to make this […]

Read More… from Panopto API meets WordPress

PHP Middleware for Keeping Your JS API Secrets Secret

Screenshot of a design context website where the weather data is being pulled via API.

Origin Story We were looking to pull in live weather data for a eco-related design contest that VCU Qatar is hosting. I found a free API for weather but wanted a way to use it via javascript and not expose any secrets. That led to the script below. Many APIs have query strings that require […]

Read More… from PHP Middleware for Keeping Your JS API Secrets Secret

jQuery & the WordPress Rest API – 1st Image as Background

Ordinarily it’s pretty easy to get the featured image from the WordPress API. You just have to remember to add the _embed element like so https://bionicteaching.com/wp-json/wp/v2/posts?_embed But maybe there’s some reason you don’t want to set the featured image but want to get the first image from the body of the post. This chunk of […]

Read More… from jQuery & the WordPress Rest API – 1st Image as Background