[英]Tin-can LRS query Statements can not grab my data
I use Tin Can query to grab my scorm.我使用 Tin Can 查询来获取我的 scorm。
I want to grab which name = "Ming" but I would show all student....我想抓住哪个名字=“Ming”,但我会向所有学生展示....
I use API step by step,I don't know what's wrong?我一步步使用API,不知道哪里出了问题?
this is my data:这是我的数据:
this is my code:这是我的代码:
<?php
$loader = require '../vendor/autoload.php';
$lrs = new TinCan\RemoteLRS(
'https://cloud.scorm.com/lrs/SFXXXXX/',
'1.0.0',
'accountXXX',
'PWDXXXX'
);
$actor = new TinCan\Agent(
['name'=> '名 小']
);
$response = $lrs->queryStatements(
[ 'agent' => $actor,
'limit' =>8 ,
]
);
?>
This is my reference: Tin-can reference这是我的参考: 锡罐参考
please help me,thanks.请帮助我,谢谢。
new:新的:
I change my code to agent,我将代码更改为代理,
but it show:但它显示:
he following 'agent' parameter contains invalid properties:
'{"objectType":"Group","name":"\u540d \u5c0f"}'
actor
is not one of the available query parameters. actor
不是可用的查询参数之一。 You would need to use agent
, and to filter statements by an Agent you have to provide the IFI, in your case the account
value, name
is not an acceptable identifier in xAPI so it can't be used as a filter value.您将需要使用agent
,并通过代理过滤语句,您必须提供 IFI,在您的情况下, account
值、 name
在 xAPI 中不是可接受的标识符,因此它不能用作过滤器值。 The list of available properties matches the set of query string parameters listed in the GET /statements
resource here: https://github.com/adlnet/xAPI-Spec/blob/master/xAPI-Communication.md#213-get-statements可用属性列表与此处的GET /statements
资源中列出的查询字符串参数集相匹配: https : //github.com/adlnet/xAPI-Spec/blob/master/xAPI-Communication.md#213-get-statements
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.