numericcitizen
numericcitizen

Here is something that I really would like to do. Using Apple shortcuts, Charty for Shortcuts and Plausible analytics APIs: create an iPhone and iPad widget to display visitor statistics on my home screen. Another app like Actions would probably be needed too.

|
Embed
Progress spinner
numericcitizen
numericcitizen

@numericcitizen If anyone stumble on this post... I did some research and because Plausible uses a GET method to pull data out and because the Authorization is done via an API token with the Bearer method, it appears that it's not possible to make the call from a Shortcut. Apple's Shortcuts runtime doesn't allow setting the token before making the call. More research is needed.

|
Embed
Progress spinner
matt@isfeeling.social
matt@isfeeling.social

@numericcitizen It is possible, just not obvious by Plausible's docs…use an “Authorization" header and make the value “Bearer {your key here}”

Totally works 😁

|
Embed
Progress spinner
numericcitizen
numericcitizen

@matt yeah, someone on Reddit told me that.. for some reasons I was going by the book with this and didn't think I could put params in the URL and leave the headers section for the auth token only. Yes, works great! Now, I'll try to make ti works with Charty...

|
Embed
Progress spinner
In reply to
numericcitizen
numericcitizen

@matt now the fun part of dealing with JSON / Dictionaries begin...

|
Embed
Progress spinner