POST api/IClassUsers/BindScratchCard
Request Information
URI Parameters
None.
Body Parameters
clsBindScratchCardRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| UserID | string |
None. |
|
| ScratchCard | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserID": "sample string 1",
"ScratchCard": "sample string 2"
}
application/xml, text/xml
Sample:
<clsBindScratchCardRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LiveTextBooksModel.Entity"> <ScratchCard>sample string 2</ScratchCard> <UserID>sample string 1</UserID> </clsBindScratchCardRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
clsBindScratchCardResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| ScratchCardNo | string |
None. |
|
| PackageName | string |
None. |
|
| Standard | string |
None. |
|
| subjects | Collection of SubjectVideo |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ScratchCardNo": "sample string 1",
"PackageName": "sample string 2",
"Standard": "sample string 3",
"subjects": [
{
"SubjectName": "sample string 1",
"TotalVideos": 2,
"TotalHours": 3
},
{
"SubjectName": "sample string 1",
"TotalVideos": 2,
"TotalHours": 3
}
],
"Message": "sample string 4"
}
application/xml, text/xml
Sample:
<clsBindScratchCardResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LiveTextBooksModel.Entity">
<Message>sample string 4</Message>
<PackageName>sample string 2</PackageName>
<ScratchCardNo>sample string 1</ScratchCardNo>
<Standard>sample string 3</Standard>
<subjects>
<SubjectVideo>
<SubjectName>sample string 1</SubjectName>
<TotalHours>3</TotalHours>
<TotalVideos>2</TotalVideos>
</SubjectVideo>
<SubjectVideo>
<SubjectName>sample string 1</SubjectName>
<TotalHours>3</TotalHours>
<TotalVideos>2</TotalVideos>
</SubjectVideo>
</subjects>
</clsBindScratchCardResponse>