Needio.Services

<back to all web services

RunStoreSocialActionRequest

Requires Authentication
The following routes are available for this service:
All Verbs/Store/RunStoreSocialAction/
RunStoreSocialActionRequest Parameters:
NameParameterData TypeRequiredDescription
StoreIdqueryintNo
UserIdqueryintNo
ActionqueryItemActionsNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
RunStoreSocialActionResponse Parameters:
NameParameterData TypeRequiredDescription
StoreSocialInfoformItemSocialInfoDTONo
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
RunStoreSocialActionResponse Parameters:
NameParameterData TypeRequiredDescription
StoreSocialInfoformItemSocialInfoDTONo

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 /Store/RunStoreSocialAction/ HTTP/1.1 
Host: baseservices2.needion.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	StoreId: 0,
	UserId: 0,
	Action: 0,
	start: 2020-07-07T19:15:06.5313045+03:00
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	StoreSocialInfo: 
	{
		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
	}
}