Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lrs.getStatements will not query on an inline agent object #56

Open
ervinMagic opened this issue Nov 21, 2013 · 2 comments
Open

lrs.getStatements will not query on an inline agent object #56

ervinMagic opened this issue Nov 21, 2013 · 2 comments

Comments

@ervinMagic
Copy link
Contributor

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
Copy link
Contributor Author

@brianjmiller please take a look some time

@brianjmiller
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants