POST api/{area}/OEUser/BindPushSetting

推送设置

Request Information

URI Parameters

NameDescriptionTypeAdditional information
area

string

None.

Body Parameters

PushSettingBindingModels
NameDescriptionTypeAdditional information
ShopId

商城ID

string

None.

IsPushQuotation

是否推送经典语录

boolean

None.

IsPushVideo

是否推送精彩视频

boolean

None.

Id

Id

string

None.

AccountId

用户Id

string

None.

ShopId

商城Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ShopId": "sample string 1",
  "IsPushQuotation": true,
  "IsPushVideo": true,
  "Id": "sample string 4",
  "AccountId": "sample string 5"
}

application/xml, text/xml

Sample:
<PushSettingBindingModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/open.wst.com.Areas.OnlineEducation.Models">
  <AccountId xmlns="http://schemas.datacontract.org/2004/07/open.wst.com.Models">sample string 5</AccountId>
  <Id xmlns="http://schemas.datacontract.org/2004/07/open.wst.com.Models">sample string 4</Id>
  <ShopId xmlns="http://schemas.datacontract.org/2004/07/open.wst.com.Models">6</ShopId>
  <IsPushQuotation>true</IsPushQuotation>
  <IsPushVideo>true</IsPushVideo>
  <ShopId>sample string 1</ShopId>
</PushSettingBindingModels>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseResultModels
NameDescriptionTypeAdditional information
errcode

返回Code(-1请求失败,0请求成功,1调用支付)

integer

None.

errmsg

返回提示消息

string

None.

url

返回Url

string

None.

data

返回数据

string

None.

dataObj

返回数据1

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "errcode": 1,
  "errmsg": "sample string 2",
  "url": "sample string 3",
  "data": "sample string 4",
  "dataObj": {}
}

application/xml, text/xml

Sample:
<BaseResultModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/open.wst.com.Models">
  <data>sample string 4</data>
  <dataObj />
  <errcode>1</errcode>
  <errmsg>sample string 2</errmsg>
  <url>sample string 3</url>
</BaseResultModels>