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
},
"responseCoderequest": "OK",{ "result": { "userId": "{{userId}}", "collectionId": "{{collectionId}}", // optional // either of "contextId": "{{batchId}}", // optionalthe three options is mandatory
"contentscontentId": [{
"{{contentId}}" //optional
"contentIdcollectionId" : "{{contentIdcollectionId}}", //optional
"statuscontextId" : "{{content_statuscontextId}}" //optional
// 0,1 or 2
"progressDetails": "{}"
}]
}
}
|
Sample Response: Sample1: Without context Response: 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",
"iderr": "api.view.read"null,
"verstatus": "v1success",
"tserrmsg": "2021-06-23 05:37:40:575+0000null
},
"responseCode": "OK",
"paramsresult": {
...
... "resmsgid": null, "msgid": "5e763bc2-b072-440d-916e-da787881b1b9", "err": null, //requested_data
"statustype": "successcontextall",
"errmsgcontents" : null[ }, "responseCode": "OK", "result": { "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"
}
}]
}
} |
|