Needio.Services

<back to all web services

RunUserSocialActionRequest

Requires Authentication
Required role:Approved
The following routes are available for this service:
All Verbs/User/RunUserSocialAction/
RunUserSocialActionRequest Parameters:
NameParameterData TypeRequiredDescription
TargetUserIdqueryintNo
ActionqueryUserActionsNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
DeviceUUIDformstringNo
APIKeyformstringNo
RunUserSocialActionResponse Parameters:
NameParameterData TypeRequiredDescription
UserSocialInfoformUserSocialInfoDTONo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
ResMessageformstringNo
ErrorformErrorNo
PageInfoformBasePageInfoNo
Error Parameters:
NameParameterData TypeRequiredDescription
ErrorYnformboolNo
ErrorCodeformstringNo
ErrorDescriptionformstringNo
BasePageInfo Parameters:
NameParameterData TypeRequiredDescription
TotalRecordCountformintNo
TotalPageCountformintNo
CurrentPageformintNo
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 .xml suffix or ?format=xml

HTTP + XML

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: baseservices.needion.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<RunUserSocialActionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel.v2">
  <APIKey>String</APIKey>
  <DeviceUUID>String</DeviceUUID>
  <Action>Like</Action>
  <TargetUserId>0</TargetUserId>
</RunUserSocialActionRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<RunUserSocialActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel.v2">
  <Error>
    <ErrorCode>String</ErrorCode>
    <ErrorDescription>String</ErrorDescription>
    <ErrorYn>false</ErrorYn>
  </Error>
  <PageInfo>
    <CurrentPage>0</CurrentPage>
    <TotalPageCount>0</TotalPageCount>
    <TotalRecordCount>0</TotalRecordCount>
  </PageInfo>
  <ResMessage>String</ResMessage>
  <Result>false</Result>
  <UserSocialInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel.v2.Models">
    <d2p1:ActivePostCount>0</d2p1:ActivePostCount>
    <d2p1:AvgRate>0</d2p1:AvgRate>
    <d2p1:BanCount>0</d2p1:BanCount>
    <d2p1:BannedCount>0</d2p1:BannedCount>
    <d2p1:DidUserBan>false</d2p1:DidUserBan>
    <d2p1:DidUserBanned>false</d2p1:DidUserBanned>
    <d2p1:DidUserFollow>false</d2p1:DidUserFollow>
    <d2p1:DidUserFollowed>false</d2p1:DidUserFollowed>
    <d2p1:DidUserLike>false</d2p1:DidUserLike>
    <d2p1:DidUserRate>false</d2p1:DidUserRate>
    <d2p1:FollowCount>0</d2p1:FollowCount>
    <d2p1:FollowedCount>0</d2p1:FollowedCount>
    <d2p1:LikeCount>0</d2p1:LikeCount>
    <d2p1:RateCount>0</d2p1:RateCount>
    <d2p1:ViewCount>0</d2p1:ViewCount>
  </UserSocialInfo>
</RunUserSocialActionResponse>