POST api/SleepAccount/ShareInfo

type为1返回带链接的标题内容,为2返回文本型内容(只需要取content)

Request Information

URI Parameters

None.

Body Parameters

ShareInfoReq
NameDescriptionTypeAdditional information
type

type为1返回带链接的标题内容,为2返回文本型内容,必须传uid和pid(只需要取content),为3为今日便签内容

integer

None.

uid

string

None.

pid

integer

None.

version

string

None.

imei

string

None.

system

string

None.

token

string

None.

language

string

None.

timeZone

string

None.

Request Formats

application/json, text/json

Sample:
{
  "type": 1,
  "uid": "sample string 2",
  "pid": 3,
  "version": "sample string 4",
  "imei": "sample string 5",
  "system": "sample string 6",
  "token": "sample string 7",
  "language": "sample string 8",
  "timeZone": "sample string 9"
}

application/xml, text/xml

Sample:
<ShareInfoReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Controllers">
  <imei xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 5</imei>
  <language xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 8</language>
  <pid xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">3</pid>
  <system xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 6</system>
  <timeZone xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 9</timeZone>
  <token xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 7</token>
  <version xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 4</version>
  <type>1</type>
  <uid>sample string 2</uid>
</ShareInfoReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ShareInfoModel
NameDescriptionTypeAdditional information
title

string

None.

content

请求今日便签内容时该字段表示随机的一句话,分行时用\n表示

string

None.

url

string

None.

theDayCount

请求今日便签内容时该字段表示早睡早起的天数

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "title": "sample string 1",
  "content": "sample string 2",
  "url": "sample string 3",
  "theDayCount": 4
}

application/xml, text/xml

Sample:
<ShareInfoModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Controllers">
  <content>sample string 2</content>
  <theDayCount>4</theDayCount>
  <title>sample string 1</title>
  <url>sample string 3</url>
</ShareInfoModel>