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 […]
Tag: 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 […]
Omeka REST API Experiment
In the Domain of One’s Own workshop yesterday, Ed Beck‘s work around integrating Omeka and WordPress came up. It led me to check out the Omeka S API. I made a functional example in CodePen and a couple of things came up that might be of interest. First, why do something like this? You have […]
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 […]
Data Games with Google Sheets
This is for a workshop with students on Saturday. It’s a revision of a thing Jeff and I did a way back in 2018. I think I’ve come up with some improved examples and I’ve revised a few things. The goal is to let any skill level start to see how spreadsheets can be useful […]
Zombie Posts/Pages Shortcode
Origin Story This is an odd one but has a number of uses outside this weird scenario. In this case authors have access to Site B but want the content they write to show up on Site A on the appropriate pages/posts. Given this is a multisite I could tie the sites together and do […]
PHP Middleware for Keeping Your JS API Secrets Secret
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
For Want of an API . . .
We wanted to be able to know whether people signing up for Ram Pages were faculty or not but didn’t want to add fields for them to fill out. VCU has an online phonebook with faculty emails in it but there didn’t appear to be a way to hook into an API. But you can […]
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