I’m studying the new tm-http-request and the Zotero example. My hope is to do the same thing but for Google Sheets, i.e import sheet rows to become tiddlers.
The Zotero example fetches the data from this JSON page.
I instead have generated this Sheets JSON page (annoyingly, to view it you need to be in logged into a google account despite that I set all the knobs to sharing as publicly as possible) …but this is what it looks like:
{"data":[{"id":"2021-02-26T20:31:24.598Z","title":"QuineTest","text":"What hath God wrought?"},{"id":"2021-02-26T20:15:04.764Z","title":"Bindweed","text":"<center>\n[img[http://www.aphotoflora.com/images/convolvulaceae/calystegia_silvatica_large_bindweed_flower_side_view_27-06-05.jpg]]\n\n\n[[Bindweed|https://en.wikipedia.org/wiki/Calystegia]]\n</center>"},{"id":"2021-02-26T19:48:30.787Z","title":"Garlic Mustard","text":"<center>\n[img[https://upload.wikimedia.org/wikipedia/commons/9/90/Garlic_Mustard_close_800.jpg]]\n\n[img[http://www.kingcounty.gov/~/media/environment/animalsAndPlants/noxious_weeds/imagesD_G/garlic_mustard_flowering.ashx?la=en]]\n\n[[Garlic Mustard|https://en.wikipedia.org/wiki/Alliaria_petiolata]]\n</center>"},{"id":"2021-02-26T19:36:15.484Z","title":"walts test","text":"the quick brown fox"},{"id":"2021-02-17T14:59:34.302Z","title":"Jims tiddler","text":"A note from Jim about google sheets and TW"}]}
The first thing I notice is that the Zotero JSON has this general structure:
[
{
...
},
...
]
whereas the generated Sheets JSON has this structure:
{"data":
[
{
...
},
...
]
}
…i.e the Sheets JSON is wrapped with {"data":
…}
Q1: Is the “wrapped” aspect a problem for tm-http-request?
Q2: If the wrapping is not the issue:
When I, in the Zotero example, simply switch the url to my sheets JSON url, it doesn’t work. Why? Or, rather, how should I make the message call with my Sheets JSON?
Thank you!