Needio.Services

<back to all web services

GetUserPostViewsRequest

The following routes are available for this service:
All Verbs/Post/GetUserPostView
GetUserPostViewsRequest Parameters:
NameParameterData TypeRequiredDescription
ExcludedPostIdqueryintNo
PagequeryintNo
CountqueryintNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
DeviceUUIDformstringNo
APIKeyformstringNo
GetUserPostViewResponse Parameters:
NameParameterData TypeRequiredDescription
PostsformList<SItemDto>No
PostCountformintNo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
ResMessageformstringNo
ErrorformErrorNo
PageInfoformBasePageInfoNo
Error Parameters:
NameParameterData TypeRequiredDescription
ErrorYnformboolNo
ErrorCodeformstringNo
ErrorDescriptionformstringNo
BasePageInfo Parameters:
NameParameterData TypeRequiredDescription
TotalRecordCountformintNo
TotalPageCountformintNo
CurrentPageformintNo
SItemDto Parameters:
NameParameterData TypeRequiredDescription
ItemTypeformItemTypesNo
ItemIdformintNo
ItemKeyformstringNo
ItemNameformstringNo
ItemHeaderformstringNo
DescriptionformstringNo
CategoryKeyformstringNo
ConditionIdformintNo
ParentItemTypeformItemTypesNo
ParentItemIdformintNo
ParentItemHeaderformstringNo
ParentFriendlyURLformstringNo
ParentMainMediaIdformstringNo
ParentMainMediaFriendlyURLformstringNo
PostTypeIdformshortNo
LocationformGeoLocationNo
MainMediaIdformstringNo
MainMediaFriendlyURLformstringNo
ListPriceformdecimal?No
SalePriceformdecimal?No
DiscountRateformdecimal?No
AddCommisionYnformboolNo
PublishYnformboolNo
MapAvatarformstringNo
FriendlyURLformstringNo
AvgRateformdecimalNo
RateCountformintNo
FollowCountformintNo
ViewCountformintNo
DidUserFollowformboolNo
ScoreformshortNo
DistanceformdoubleNo
StockTypeformshort?No
PriceTypeformshort?No
InStockYnformbool?No
InStockformint?No
AllowSaleYnformboolNo
CampaingnformItemCampaignDtoNo
PropertiesformList<PropertyDto>No
CargoPriceformdecimalNo
ItemTypes Enum:
NameValue
Post1
Store2
Category3
Product4
Campaign11
Banner21
GeoLocation Parameters:
NameParameterData TypeRequiredDescription
LonformstringNo
LatformstringNo
GeoAddressformstringNo
IsDeletedformboolNo
ItemCampaignDto Parameters:
NameParameterData TypeRequiredDescription
CampaignIdformintNo
CampaignCodeformstringNo
DescriptionformstringNo
MessageformstringNo
CampaignMessageformstringNo
ItemIdformintNo
ItemTypeformItemTypesNo
SaleQtyformintNo
MinimumQtyformintNo
InputSalePriceformdecimalNo
CSalePriceformdecimalNo
CTotalPriceformdecimalNo
CampaignTypeformCampaignTypesNo
CDiscountTypeformCampaignDiscountTypesNo
CDiscountQtyformintNo
CDiscountRateformdecimalNo
CDiscountAmtformdecimalNo
BeginDateformDateTimeNo
EndDateformDateTimeNo
LogoUrlformstringNo
ShowPriceYnformboolNo
CampaignAppliedformboolNo
CampaignTypes Enum:
NameValue
OnlyList0
SameProduct1
DifferentProduct2
AnyProduct3
Custom4
BasketDiscount11
StoreDiscount12
CampaignDiscountTypes Enum:
NameValue
Percent1
Amount2
Quantity3
PropertyDto Parameters:
NameParameterData TypeRequiredDescription
KeyformstringNo
ValueformstringNo
GetUserPostViewResponse Parameters:
NameParameterData TypeRequiredDescription
PostsformList<SItemDto>No
PostCountformintNo

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

{"ExcludedPostId":0,"Page":0,"Count":0,"start":"\/Date(1638627828681+0300)\/","DeviceUUID":"String","APIKey":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Posts":[{"ItemType":1,"ItemId":0,"ItemKey":"String","ItemName":"String","ItemHeader":"String","Description":"String","CategoryKey":"String","ConditionId":0,"ParentItemType":1,"ParentItemId":0,"ParentItemHeader":"String","ParentFriendlyURL":"String","ParentMainMediaId":"String","ParentMainMediaFriendlyURL":"String","PostTypeId":0,"Location":{"Lon":"String","Lat":"String","GeoAddress":"String","IsDeleted":false},"MainMediaId":"String","MainMediaFriendlyURL":"String","ListPrice":0,"SalePrice":0,"DiscountRate":0,"AddCommisionYn":false,"PublishYn":false,"MapAvatar":"String","FriendlyURL":"String","AvgRate":0,"RateCount":0,"FollowCount":0,"ViewCount":0,"DidUserFollow":false,"Score":0,"Distance":0,"StockType":0,"PriceType":0,"InStockYn":false,"InStock":0,"AllowSaleYn":false,"Campaingn":{"CampaignId":0,"CampaignCode":"String","Description":"String","Message":"String","CampaignMessage":"String","ItemId":0,"ItemType":1,"SaleQty":0,"MinimumQty":0,"InputSalePrice":0,"CSalePrice":0,"CTotalPrice":0,"CampaignType":0,"CDiscountType":1,"CDiscountQty":0,"CDiscountRate":0,"CDiscountAmt":0,"BeginDate":"\/Date(-62135596800000-0000)\/","EndDate":"\/Date(-62135596800000-0000)\/","LogoUrl":"String","ShowPriceYn":false,"CampaignApplied":false},"Properties":[{"Key":"String","Value":"String"}],"CargoPrice":0}],"PostCount":0,"Result":false,"ResMessage":"String","Error":{"ErrorYn":false,"ErrorCode":"String","ErrorDescription":"String"},"PageInfo":{"TotalRecordCount":0,"TotalPageCount":0,"CurrentPage":0}}