Needio.Services

<back to all web services

GetUserStatisticsRequest

Requires Authentication
Required role:Approved
The following routes are available for this service:
All Verbs/User/GetUserStatistics/
GetUserStatisticsRequest Parameters:
NameParameterData TypeRequiredDescription
UserIdqueryintNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
DeviceUUIDformstringNo
APIKeyformstringNo
isAdminformboolNo
CmdformstringNo
GetUserStatisticsResponse Parameters:
NameParameterData TypeRequiredDescription
UserStatisticsformUserStatisticsDTONo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
ResMessageformstringNo
ErrorformErrorNo
PageInfoformBasePageInfoNo
Error Parameters:
NameParameterData TypeRequiredDescription
ErrorYnformboolNo
ExYnformboolNo
ErrorCodeformstringNo
ErrorDescriptionformstringNo
BasePageInfo Parameters:
NameParameterData TypeRequiredDescription
TotalRecordCountformintNo
TotalPageCountformintNo
CurrentPageformintNo
UserStatisticsDTO Parameters:
NameParameterData TypeRequiredDescription
UserIdformintNo
PostCountformintNo
ActivePostCountformintNo
PostViewCountformintNo
PostLikeCountformintNo
PostFollowCountformintNo
PostRateCountformintNo
PostAvgRateformdecimalNo
StoreCountformintNo
ActiveStoreCountformintNo
StoreViewCountformintNo
StoreLikeCountformintNo
StoreFollowCountformintNo
StoreRateCountformintNo
StoreAvgRateformdecimalNo
FollowCountformintNo
FollowedCountformintNo
BanCountformintNo
BannedCountformintNo
GetUserStatisticsResponse Parameters:
NameParameterData TypeRequiredDescription
UserStatisticsformUserStatisticsDTONo

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

<GetUserStatisticsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel.v2">
  <APIKey>String</APIKey>
  <Cmd>String</Cmd>
  <DeviceUUID>String</DeviceUUID>
  <isAdmin>false</isAdmin>
  <start>0001-01-01T00:00:00</start>
  <UserId>0</UserId>
</GetUserStatisticsRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetUserStatisticsResponse 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>
    <ExYn>false</ExYn>
  </Error>
  <PageInfo>
    <CurrentPage>0</CurrentPage>
    <TotalPageCount>0</TotalPageCount>
    <TotalRecordCount>0</TotalRecordCount>
  </PageInfo>
  <ResMessage>String</ResMessage>
  <Result>false</Result>
  <UserStatistics xmlns:d2p1="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel.v2.Models">
    <d2p1:ActivePostCount>0</d2p1:ActivePostCount>
    <d2p1:ActiveStoreCount>0</d2p1:ActiveStoreCount>
    <d2p1:BanCount>0</d2p1:BanCount>
    <d2p1:BannedCount>0</d2p1:BannedCount>
    <d2p1:FollowCount>0</d2p1:FollowCount>
    <d2p1:FollowedCount>0</d2p1:FollowedCount>
    <d2p1:PostAvgRate>0</d2p1:PostAvgRate>
    <d2p1:PostCount>0</d2p1:PostCount>
    <d2p1:PostFollowCount>0</d2p1:PostFollowCount>
    <d2p1:PostLikeCount>0</d2p1:PostLikeCount>
    <d2p1:PostRateCount>0</d2p1:PostRateCount>
    <d2p1:PostViewCount>0</d2p1:PostViewCount>
    <d2p1:StoreAvgRate>0</d2p1:StoreAvgRate>
    <d2p1:StoreCount>0</d2p1:StoreCount>
    <d2p1:StoreFollowCount>0</d2p1:StoreFollowCount>
    <d2p1:StoreLikeCount>0</d2p1:StoreLikeCount>
    <d2p1:StoreRateCount>0</d2p1:StoreRateCount>
    <d2p1:StoreViewCount>0</d2p1:StoreViewCount>
    <d2p1:UserId>0</d2p1:UserId>
  </UserStatistics>
</GetUserStatisticsResponse>