GET api/product/getuserproductvisitedhistory?top={top}

Lấy lịch sử xem sản phẩm của người dùng

Request Information

URI Parameters

NameDescriptionTypeAdditional information
top

Số lượng muốn lấy

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of RecommendProductModel
NameDescriptionTypeAdditional information
ProductId

integer

None.

ProductName

string

None.

Image

string

None.

Price

integer

None.

Url

string

None.

MerchantCount

integer

None.

MerchantId

integer

None.

MerchantDomain

string

None.

MerchantLogoPath

string

None.

UrlNoDomain

string

None.

MerchantStore

string

None.

PriceString

string

None.

ImageWidth

integer

None.

ImageHeight

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ProductId": "1",
    "ProductName": "sample string 2",
    "Image": "sample string 3",
    "Price": 4,
    "Url": "sample string 5",
    "MerchantCount": 6,
    "MerchantId": "7",
    "MerchantDomain": "sample string 8",
    "MerchantLogoPath": "sample string 9",
    "UrlNoDomain": "sample string 10",
    "MerchantStore": "sample string 11",
    "PriceString": "sample string 12",
    "ImageWidth": 13,
    "ImageHeight": 14
  },
  {
    "ProductId": "1",
    "ProductName": "sample string 2",
    "Image": "sample string 3",
    "Price": 4,
    "Url": "sample string 5",
    "MerchantCount": 6,
    "MerchantId": "7",
    "MerchantDomain": "sample string 8",
    "MerchantLogoPath": "sample string 9",
    "UrlNoDomain": "sample string 10",
    "MerchantStore": "sample string 11",
    "PriceString": "sample string 12",
    "ImageWidth": 13,
    "ImageHeight": 14
  }
]

application/xml, text/xml

Sample:
<ArrayOfRecommendProductModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WSS.ViewModel">
  <RecommendProductModel>
    <Image>sample string 3</Image>
    <ImageHeight>14</ImageHeight>
    <ImageWidth>13</ImageWidth>
    <MerchantCount>6</MerchantCount>
    <MerchantDomain>sample string 8</MerchantDomain>
    <MerchantId>7</MerchantId>
    <MerchantLogoPath>sample string 9</MerchantLogoPath>
    <MerchantStore>sample string 11</MerchantStore>
    <Price>4</Price>
    <PriceString>sample string 12</PriceString>
    <ProductId>1</ProductId>
    <ProductName>sample string 2</ProductName>
    <Url>sample string 5</Url>
    <UrlNoDomain>sample string 10</UrlNoDomain>
  </RecommendProductModel>
  <RecommendProductModel>
    <Image>sample string 3</Image>
    <ImageHeight>14</ImageHeight>
    <ImageWidth>13</ImageWidth>
    <MerchantCount>6</MerchantCount>
    <MerchantDomain>sample string 8</MerchantDomain>
    <MerchantId>7</MerchantId>
    <MerchantLogoPath>sample string 9</MerchantLogoPath>
    <MerchantStore>sample string 11</MerchantStore>
    <Price>4</Price>
    <PriceString>sample string 12</PriceString>
    <ProductId>1</ProductId>
    <ProductName>sample string 2</ProductName>
    <Url>sample string 5</Url>
    <UrlNoDomain>sample string 10</UrlNoDomain>
  </RecommendProductModel>
</ArrayOfRecommendProductModel>