POST api/SleepUser/FollowUser

关注用户

Request Information

URI Parameters

None.

Body Parameters

FollowUserReq
NameDescriptionTypeAdditional information
uid

当前用户id

string

None.

objectUid

关注或取消关注用户id

string

None.

secret

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:
{
  "uid": "sample string 1",
  "objectUid": "sample string 2",
  "secret": "sample string 3",
  "pid": 4,
  "version": "sample string 5",
  "imei": "sample string 6",
  "system": "sample string 7",
  "token": "sample string 8",
  "language": "sample string 9",
  "timeZone": "sample string 10"
}

application/xml, text/xml

Sample:
<FollowUserReq 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 6</imei>
  <language xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 9</language>
  <pid xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">4</pid>
  <system xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 7</system>
  <timeZone xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 10</timeZone>
  <token xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 8</token>
  <version xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 5</version>
  <objectUid>sample string 2</objectUid>
  <secret>sample string 3</secret>
  <uid>sample string 1</uid>
</FollowUserReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

FollowUserRes
NameDescriptionTypeAdditional information
isMutualConcern

是否互相关注,1为互相关注,0为互不关注,2为仅本机用户关注了该用户,3为仅该用户关注了本机用户

integer

None.

Message

消息

string

None.

Status

状态,默认情况下,1为成功。0为失败。99为权限验证失败。

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "isMutualConcern": 1,
  "Message": "sample string 2",
  "Status": 3
}

application/xml, text/xml

Sample:
<FollowUserRes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Controllers">
  <Message xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 2</Message>
  <Status xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">3</Status>
  <isMutualConcern>1</isMutualConcern>
</FollowUserRes>