TinCanJS icon indicating copy to clipboard operation
TinCanJS copied to clipboard

lrs.getStatements will not query on an inline agent object

Open ervinMagic opened this issue 11 years ago • 2 comments

tincan.getStatements({ params: { agent: {mbox: "mailto:[email protected]"} } });

gives a mysterious error about version.

tincan.getStatements({ params: { agent: new TinCan.Agent({mbox: "mailto:[email protected]"}) } });

This works just fine. Can we not parse out an agent out of the provided object?

ervinMagic avatar Nov 21 '13 17:11 ervinMagic

@brianjmiller please take a look some time

ervinMagic avatar Nov 21 '13 17:11 ervinMagic

Basically, yes. At this time the query parameters requires a pre-constructed TinCan.Agent or TinCan.Group. We can leave this open as a feature enhancement, there are probably other places that could use this kind of sugar.

brianjmiller avatar Nov 26 '13 14:11 brianjmiller