On Nov 13, 7:31 am, panyasan <
cmboulan...@googlemail.com> wrote:
> Hello again,
>
> since nobody answered I assume that there is no javascript-based
> client yet - which might have something to do with the lack of a
> decent way to process xml with javascript. I intend to create a
> javascript zotero client (but don't know if I'll have the time and
> ability to write one). I'd rather build on existing code, if there is
> some. Please, if you know of any effort, let me know, so that I don't
> reinvent the wheel.
There are OAuth functions in the connectors that may be of some use
(although they assume XMLHttpRequest, which node.js doesn't have by
default but is available in an NPM package):
https://github.com/zotero/zotero-connectors/blob/master/common/zotero/oauth.js
https://github.com/zotero/zotero-connectors/blob/master/common/zotero/oauthsimple.js
Since the connectors are write-only, they just serialize objects to
JSON and submit them, so there's nothing beyond that.
There are XML libraries for node.js, but they all suck in different
ways (either they are JS-based and slow, or they are native and
crashy, or they have non-standard APIs). It's still probably better to
use one of these solutions than to roll your own.
Simon