POST {version}/Account/ReceiveCourse

用户领取课程

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

ReceiveCourseIpo
NameDescriptionTypeAdditional information
Identifier

用户名

string

None.

PChannelTypeNo

渠道商类型编号 0-未知

PChannelTypeNoEnum

None.

Code

验证码

string

None.

Credential

密码或微信

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Identifier": "sample string 1",
  "PChannelTypeNo": 0,
  "Code": "sample string 2",
  "Credential": "sample string 3"
}

application/xml, text/xml

Sample:
<ReceiveCourseIpo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eshikao.Models.User">
  <Code>sample string 2</Code>
  <Credential>sample string 3</Credential>
  <Identifier>sample string 1</Identifier>
  <PChannelTypeNo>Unkonw</PChannelTypeNo>
</ReceiveCourseIpo>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ReceiveCourseIpo'.

Response Information

Resource Description

ApiResultOfReceiveCourseDto
NameDescriptionTypeAdditional information
Code

string

None.

Message

string

None.

Data

ReceiveCourseDto

None.

Response Formats

application/json, text/json

Sample:
{
  "Code": "sample string 1",
  "Message": "sample string 2",
  "Data": {
    "Url": "sample string 1",
    "Identifier": "sample string 2",
    "Code": "sample string 3",
    "ButtonText": "sample string 4"
  }
}

application/xml, text/xml

Sample:
<ApiResultOfReceiveCourseDtoEt5DwlUt xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TinyFx.Web.Results">
  <Code>sample string 1</Code>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eshikao.Models.User">
    <d2p1:ButtonText>sample string 4</d2p1:ButtonText>
    <d2p1:Code>sample string 3</d2p1:Code>
    <d2p1:Identifier>sample string 2</d2p1:Identifier>
    <d2p1:Url>sample string 1</d2p1:Url>
  </Data>
  <Message>sample string 2</Message>
</ApiResultOfReceiveCourseDtoEt5DwlUt>