How to use TiddlyWiki API in BoxLinux version

145 views
Skip to first unread message

skaczm...@gmail.com

unread,
Sep 1, 2020, 7:51:29 AM9/1/20
to TiddlyWiki

Hello,

I decided to use TiddlyWiki in BobLinux server version, because it is the most convenient way for me. Over time, I came up with few ideas of how to automate some tiddlers creation, but it looks like API described in official tutorial - https://tiddlywiki.com/#WebServer%20API doesn't work with this version of tiddly wiki.

Can anyone please help me with some basic functionalities like retrieving all tiddlers and injecting new one.

Best regards!

Jed Carty

unread,
Sep 4, 2020, 3:21:30 AM9/4/20
to TiddlyWiki
I haven't implemented the core http api in Bob. I made an http api in Bob but I never updated them to match the core server when the core got the http api.

I think that you are the first person I have seen even mentioned using the http api with Bob so I haven't put much thought into it past what I need. I don't think I even wrote documentation about it because there was no interest.

I will add the documentation to my list of things to add, for the moment there is only the spectacularly unhelpful option of looking at the code for the server routes https://github.com/OokTech/TW5-Bob/tree/master/ServerRoutes

My plan is to change to use routes that are more like the core server routes, but so far it has been a very low priority for me.

s.kaczmarek

unread,
Sep 10, 2020, 3:39:13 PM9/10/20
to tiddl...@googlegroups.com
Hi,

To make things clear - I don't care if your API matches core API. I just need way to retrieve tiddlers and to save new ones via external application that I am about to write.

Could you please, explain how to do these two basic operations? I know nothing about java script, so I'm not able to figure out anything from provided routes.

Best regards!

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/ea91d7af-06c1-4d19-b8ea-34a044218b04o%40googlegroups.com.

Rob Hoelz

unread,
Sep 10, 2020, 6:44:13 PM9/10/20
to TiddlyWiki
Hi,

What do your HTTP requests look like?  I believe you need to set "X-Requested-With: TiddlyWiki" for the server to accept writes.

-Rob

Jed Carty

unread,
Sep 11, 2020, 2:37:14 PM9/11/20
to TiddlyWiki
Bob doesn't need the X-Requested-With header, and unfortunately until I am not sick and have some time I don't have any documentation better than link to the code for the routes in my previous post.

It isn't anywhere near sufficient documentation, but considering that I have been averaging about 10 minutes every hour where I can sit up enough to use a computer that is what I have. It has been a long time since I looked at the http api so I am not certain about this, but to get tiddlers you POST to the /api/fetch route and the body should be a json object that is something like

{
fromWiki: someWikiName,
filter: some filter
}

and I really couldn't tell you what the returned thing looks like, it should be json but that is all I remember.

to save things you POST to the /api/push route and the request body is something like

{
toWiki: someWikiName,
tiddlers: tiddlers in some format that I don't remember
}

the TwederBob plugin has a javascript widget for interacting with the Bob api, so hopefully this link helps: https://github.com/OokTech/TW5-TWederBob/blob/master/action-interServerMessage.js

I am going to go fall back into bed now.

Ste

unread,
Sep 12, 2020, 5:55:57 AM9/12/20
to TiddlyWiki
:( get well soon Jed

s.kaczmarek

unread,
Sep 12, 2020, 7:46:29 PM9/12/20
to tiddl...@googlegroups.com
Take care Jed and thank you. I will experiment with what you provided and get back to you once you feel better.

sob., 12 wrz 2020 o 11:56 Ste <needco...@gmail.com> napisał(a):
:( get well soon Jed


--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages