Request: Code Block |
---|
| {
"id": "api.view.read.contextall",
"ver": "v1",
"ts": "2021-06-23 05:37:40:575+0000",
"params": {
"resmsgid": null,
"msgid": "5e763bc2-b072-440d-916e-da787881b1b9",
"err": null,
"status": "success",
"errmsg": null
": {
}, "responseCodemsgid": "OK",5e763bc2-b072-440d-916e-da787881b1b9"
"result": {}
"userIdrequest": "{{userId}}", "collectionId": "{{collectionId}}", // optional "contextId": "{{batchId}}", // optional // either of the "contents": [{
three options is mandatory
"contentId": "{{contentId}}", //optional
"statuscollectionId" : "{{content_statuscollectionId}}" // 0,1 or 2
//optional
"progressDetailscontextId" : "{{contextId}}" }]//optional
}
}
|
Sample Response: Sample1: Without context code Code Block |
---|
| {
"id": "api.view.read.contextall",
"ver": "v1",
"ts": "2021-06-23 05:37:40:575+0000",
"params": {
"resmsgid": null,
"msgid": "5e763bc2-b072-440d-916e-da787881b1b9",
"err": null,
"status": "success",
"paramserrmsg": {null
},
"resmsgidresponseCode": null"OK",
"result": {
"msgid": "5e763bc2-b072-440d-916e-da787881b1b9",...
... "err": null, "status": "success", "errmsg": null },//requested_data
"responseCodetype": "OKcontextall",
"resultcontents" : { [ "userId": "user_123",
"contents": [{
// List of all contents irresepcitvie of context
]
} "contentId": "content_123",
}
|
Sample Response: Code Block |
---|
| {
"statusid" : "1api.view.read.contextall",
"ver": "v1",
"progressDetailsts": "{
2021-06-23 05:37:40:575+0000",
"params": {
"progressresmsgid": :20null,
"msgid": "5e763bc2-b072-440d-916e-da787881b1b9",
"timespenterr" : 10null,
"status": "success",
}"errmsg": null
},
"responseCode": "OK",
}] "result": {
}
} |
Example2: With context Code Block |
---|
| {
"userId" : "user_123",
"idcollectionId" : "api.view.read",collection_123"
"vercontents":[
"v1", {
"ts": "2021-06-23 05:37:40:575+0000", "userid" :"params": {
user_123",
"resmsgidcontentId": null"content_123",
"msgidstatus": "5e763bc2-b072-440d-916e-da787881b1b91",
"errprogressDetails": null,{
"statusprogress": "success"20,
"errmsgtimespent": null10
},
"responseCode": "OK",},
{
"result": { "userIduserid" : "user_123",
"collectionId" : "collection_!23",
"contextId" : "context_123",
"contents":
[{ "contentId": "content_123",
"progressDetails": "{
: {
"progress": :20,
"timespent" : 10
}",
status "status": "12"
}
}]
}
} |
|