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 .jsv suffix or ?format=jsv

HTTP + JSV

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/jsv
Content-Type: text/jsv
Content-Length: length

{
	PostId: 0,
	UserId: 0,
	Action: 0,
	start: 2020-07-13T12:19:53.6220446+03:00
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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: 0001-01-01
	},
	Result: False,
	ResMessage: String,
	Error: 
	{
		ErrorYn: False,
		ErrorCode: String,
		ErrorDescription: String
	}
}