POST api/Ad/post

Request Information

URI Parameters

None.

Body Parameters

adPost
NameDescriptionTypeAdditional information
type

AdType

None.

uid

账号id

integer

None.

token

token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "type": 0,
  "uid": 1,
  "token": "sample string 2"
}

application/xml, text/xml

Sample:
<adPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Controllers">
  <token xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models">sample string 2</token>
  <uid xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models">1</uid>
  <type>all</type>
</adPost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

adResult
NameDescriptionTypeAdditional information
imgurl

string

None.

pathurl

string

None.

Code

integer

None.

Msg

string

None.

Response Formats

application/json, text/json

Sample:
{
  "imgurl": "sample string 1",
  "pathurl": "sample string 2",
  "Code": 3,
  "Msg": "sample string 4"
}

application/xml, text/xml

Sample:
<adResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Controllers">
  <Code xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models">3</Code>
  <Msg xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models">sample string 4</Msg>
  <imgurl>sample string 1</imgurl>
  <pathurl>sample string 2</pathurl>
</adResult>