Needio.Services

<back to all web services

GetUserSocialInfoRequest

Requires Authentication
The following routes are available for this service:
All Verbs/User/GetUserSocialInfo/
GetUserSocialInfoRequest Parameters:
NameParameterData TypeRequiredDescription
UserIdqueryintNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
GetUserSocialInfoResponse 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
GetUserSocialInfoResponse 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/GetUserSocialInfo/ HTTP/1.1 
Host: baseservices2.needion.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<GetUserSocialInfoRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel">
  <UserId>0</UserId>
</GetUserSocialInfoRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetUserSocialInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel">
  <Error>
    <ErrorCode>String</ErrorCode>
    <ErrorDescription>String</ErrorDescription>
    <ErrorYn>false</ErrorYn>
  </Error>
  <ResMessage>String</ResMessage>
  <Result>false</Result>
  <UserSocialInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel.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>
</GetUserSocialInfoResponse>