POST api/UnitVisitor/AddVisitor

添加访客测试数据 【此接口上线后会干掉】

Request Information

URI Parameters

None.

Body Parameters

AddVisitorInput
NameDescriptionTypeAdditional information
UnitID

被访问的网小编号

globally unique identifier

None.

VisitorUserNumb

网校号

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UnitID": "48a7f143-83eb-4b99-a661-3cedc6c4b7a2",
  "VisitorUserNumb": "sample string 2"
}

application/xml, text/xml

Sample:
<UnitVisitorController.AddVisitorInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_30edu.WEBAPI.WX.API.Friend">
  <UnitID>48a7f143-83eb-4b99-a661-3cedc6c4b7a2</UnitID>
  <VisitorUserNumb>sample string 2</VisitorUserNumb>
</UnitVisitorController.AddVisitorInput>

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 'AddVisitorInput'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.