Needio.Services

<back to all web services

RunPostSocialActionRequest

Requires Authentication
The following routes are available for this service:
All Verbs/Post/RunPostSocialAction/
RunPostSocialActionRequest Parameters:
NameParameterData TypeRequiredDescription
PostIdqueryintNo
UserIdqueryintNo
ActionqueryItemActionsNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
RunPostSocialActionResponse Parameters:
NameParameterData TypeRequiredDescription
PostSocialInfoformItemSocialInfoDTONo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
ResMessageformstringNo
ErrorformErrorNo
Error Parameters:
NameParameterData TypeRequiredDescription
ErrorYnformboolNo
ErrorCodeformstringNo
ErrorDescriptionformstringNo
ItemSocialInfoDTO Parameters:
NameParameterData TypeRequiredDescription
AvgRateformdecimalNo
RateCountformintNo
Rate1CountformintNo
Rate2CountformintNo
Rate3CountformintNo
Rate4CountformintNo
Rate5CountformintNo
LikeCountformintNo
FollowCountformintNo
ViewCountformintNo
DidUserLikeformboolNo
DidUserRateformboolNo
DidUserFollowformboolNo
CanBeSharedformboolNo
ScoreformshortNo
ApprovedDateformDateTime?No
ItemActions Enum:
NameValue
IncreaseView0
Like1
Dislike2
Follow3
UnFollow4
RunPostSocialActionResponse Parameters:
NameParameterData TypeRequiredDescription
PostSocialInfoformItemSocialInfoDTONo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Post/RunPostSocialAction/ HTTP/1.1 
Host: baseservices2.needion.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"PostId":0,"UserId":0,"Action":0,"start":"\/Date(1594625391119+0300)\/"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"PostSocialInfo":{"AvgRate":0,"RateCount":0,"Rate1Count":0,"Rate2Count":0,"Rate3Count":0,"Rate4Count":0,"Rate5Count":0,"LikeCount":0,"FollowCount":0,"ViewCount":0,"DidUserLike":false,"DidUserRate":false,"DidUserFollow":false,"CanBeShared":false,"Score":0,"ApprovedDate":"\/Date(-62135596800000-0000)\/"},"Result":false,"ResMessage":"String","Error":{"ErrorYn":false,"ErrorCode":"String","ErrorDescription":"String"}}