POST api/PostsV770/PublishPosts

发布帖子

Request Information

URI Parameters

None.

Body Parameters

ZaiMieApp.WebApi.ViewModel.SubmitPostView
NameDescriptionTypeAdditional information
userinfoId

用户Id

integer

Range: inclusive between 1 and 9.22337203685478E+18

newspapergroupId

租户Id

integer

None.

gps_x

坐标

decimal number

None.

gps_y

坐标

decimal number

None.

address

地址

string

Required

content

内容

string

None.

topicId

话题Id

integer

None.

postType

帖子类型; 发帖 = 1,站队 = 2,话题 = 3,链接=4

integer

None.

image

帖子图片string数组

Collection of string

None.

images

安卓改换新的请求框架,专用字段

string

None.

showAddress

是否显示地址; 显示=1,不显示=0

integer

None.

videoFaceImg

视频封面

string

None.

videoUrl

视频url

string

None.

videoDuration

视频时长

integer

None.

audio

语音

string

None.

audioDuration

语音时长

integer

None.

sign

string

None.

stamp

string

None.

Request Formats

application/json, text/json

Sample:
{
  "userinfoId": 1,
  "newspapergroupId": 2,
  "gps_x": 3.1,
  "gps_y": 4.1,
  "address": "sample string 5",
  "content": "sample string 6",
  "topicId": 7,
  "postType": 8,
  "image": [
    "sample string 1",
    "sample string 2"
  ],
  "images": "sample string 9",
  "showAddress": 10,
  "videoFaceImg": "sample string 11",
  "videoUrl": "sample string 12",
  "videoDuration": 13,
  "audio": "sample string 14",
  "audioDuration": 15,
  "sign": "sample string 16",
  "stamp": "sample string 17"
}

application/xml, text/xml

Sample:
<SubmitPostView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZaiMieApp.WebApi.ViewModel">
  <sign>sample string 16</sign>
  <stamp>sample string 17</stamp>
  <address>sample string 5</address>
  <audio>sample string 14</audio>
  <audioDuration>15</audioDuration>
  <content>sample string 6</content>
  <gps_x>3.1</gps_x>
  <gps_y>4.1</gps_y>
  <image xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </image>
  <images>sample string 9</images>
  <newspapergroupId>2</newspapergroupId>
  <postType>8</postType>
  <showAddress>10</showAddress>
  <topicId>7</topicId>
  <userinfoId>1</userinfoId>
  <videoDuration>13</videoDuration>
  <videoFaceImg>sample string 11</videoFaceImg>
  <videoUrl>sample string 12</videoUrl>
</SubmitPostView>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ZaiMieApp.WebApi.ViewModel.ResultMsg
NameDescriptionTypeAdditional information
success

boolean

None.

code

integer

None.

addcoin

赠送的金币

integer

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "code": 2,
  "addcoin": 3,
  "message": "sample string 4"
}

application/xml, text/xml

Sample:
<ResultMsg xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZaiMieApp.WebApi.ViewModel">
  <addcoin>3</addcoin>
  <code>2</code>
  <message>sample string 4</message>
  <success>true</success>
</ResultMsg>