Needio.Services

<back to all web services

RunUserSocialActionRequest

Requires Authentication
The following routes are available for this service:
All Verbs/User/RunUserSocialAction/
RunUserSocialActionRequest Parameters:
NameParameterData TypeRequiredDescription
TargetUserIdqueryintNo
ActionqueryUserActionsNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
RunUserSocialActionResponse Parameters:
NameParameterData TypeRequiredDescription
UserSocialInfoformUserSocialInfoDTONo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
ResMessageformstringNo
ErrorformErrorNo
Error Parameters:
NameParameterData TypeRequiredDescription
ErrorYnformboolNo
ErrorCodeformstringNo
ErrorDescriptionformstringNo
UserSocialInfoDTO Parameters:
NameParameterData TypeRequiredDescription
AvgRateformdoubleNo
RateCountformintNo
LikeCountformintNo
BanCountformintNo
BannedCountformintNo
FollowCountformintNo
FollowedCountformintNo
ActivePostCountformintNo
ViewCountformintNo
DidUserLikeformboolNo
DidUserBanformboolNo
DidUserBannedformboolNo
DidUserRateformboolNo
DidUserFollowformboolNo
DidUserFollowedformboolNo
UserActions Enum:
NameValue
Like1
Dislike2
Follow3
UnFollow4
Ban5
UnBan6
RunUserSocialActionResponse Parameters:
NameParameterData TypeRequiredDescription
UserSocialInfoformUserSocialInfoDTONo

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /User/RunUserSocialAction/ HTTP/1.1 
Host: baseservices2.needion.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"TargetUserId":0,"Action":1,"start":"\/Date(1593706700375+0300)\/"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"UserSocialInfo":{"AvgRate":0,"RateCount":0,"LikeCount":0,"BanCount":0,"BannedCount":0,"FollowCount":0,"FollowedCount":0,"ActivePostCount":0,"ViewCount":0,"DidUserLike":false,"DidUserBan":false,"DidUserBanned":false,"DidUserRate":false,"DidUserFollow":false,"DidUserFollowed":false},"Result":false,"ResMessage":"String","Error":{"ErrorYn":false,"ErrorCode":"String","ErrorDescription":"String"}}