adlnet / xAPIWrapper

Wrapper to simplify communication to an LRS
https://adlnet.gov/projects/xapi/
Apache License 2.0
219 stars 114 forks source link

Send multiple parameters for searchParams in getStatements #49

Closed blumonkey closed 9 years ago

blumonkey commented 9 years ago

Not exactly an issue, but I cant find anything related to this in the documentation.

Suppose I want to query for multiple parameters like all statements with verbs pause or play. Or all Users whose id(mail) is on a particular domain, etc. How do I do such queries? If possible please direct to a complete documentation on the searchParams object as it looks quite essential.

Thanks.

creighton commented 9 years ago

You're limited to the search functionality of xAPI. See the spec for search parameters: https://github.com/adlnet/xAPI-Spec/blob/master/xAPI-Communication.md#213-get-statements

As for how to use the wrapper with search parameters, refer to https://github.com/adlnet/xAPIWrapper#get-statements-based-on-search-parameters

I will add another example to the readme

stevenvergenz commented 9 years ago

If it helps your use case, the xAPIDashboard project has a much more advanced querying interface, but has the downside of still requiring the download of unneeded statements as above. Use as desired.