Correct sequence of correct responses to Zotero Connector browser plugin

32 views
Skip to first unread message

Anthony Durity

unread,
Nov 4, 2022, 2:53:57 PM11/4/22
to zotero-dev
Hello all,

I'm trying to build a small Ruby on Rails app that talks to the standard Zotero Connector browser plugin

All I'm trying to do at the moment is fool the Connector plugin into thinking that it's talking to the real thing.

I get that I have to listen on /connector/getTranslatorCode and return the correct specific translator and send an updated when it asks if there are any updates with /connector/getTranslators

I'm mocking up /connector/saveItems and /connector/saveSnapshot and /connector/saveSingleFile and /connector/sessionProgress and /connector/attachmentProgress and it's mostly working (I think)

I'm wondering what prevents the browser plugin from re-saving until the web page is reloaded and is there anything I need to look out for?

Just wondering what the minimal JSON responses need to be to keep the plugin happy and doing the right thing.

Also was wondering if there's an easy way to check the XHR objects between the browser plugin and the actual Zotero client – I looked in the Network tab of the browser dev tools and I can't see any back and forth at all :(

Apologies for such basic questions :(

Regards,
    Anthony


Reply all
Reply to author
Forward
0 new messages