POST api/Activity/CastVote

會員投票

Request Information

URI Parameters

None.

Body Parameters

CastVotePara
NameDescriptionTypeAdditional information
voteTopicID

投票主題ID

integer

Required

userID

使用者ID (使用者帳號)

string

Required

isVote

是否有投票 0為取消投票/沒投票 1有投票

boolean

Required

Ticket

身份票據

string

Required

Request Formats

application/json, text/json

Sample:
{
  "voteTopicID": 1,
  "userID": "sample string 2",
  "isVote": true,
  "Ticket": "sample string 4"
}

text/html

Sample:
{"voteTopicID":1,"userID":"sample string 2","isVote":true,"Ticket":"sample string 4"}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

會員投票

CastVoteOutputModel
NameDescriptionTypeAdditional information
isSuccess

是否新增/更新成功 0失敗 1成功

boolean

None.

data

VoteTopicData

None.

ticketVerified

驗證是否通過

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "isSuccess": true,
  "data": {
    "voteTopicID": 1,
    "achievingVotesPercent": "sample string 2",
    "totalVotes": 4,
    "isVote": true
  },
  "ticketVerified": true
}

text/html

Sample:
{"isSuccess":true,"data":{"voteTopicID":1,"achievingVotesPercent":"sample string 2","totalVotes":4,"isVote":true},"ticketVerified":true}