| GET | /GetMarketplaceAdRequest | Either Gsid or PCGS is required, not both. |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Cdn.MarketingApi.RequestObjects
Imports Cdn.MarketingApi.ResponseObjects
Imports Cdn.MarketingApi.Dto
Namespace Global
Namespace Cdn.MarketingApi.Dto
Public Partial Class MarketplaceAdItemDto
Public Overridable Property Title As String
Public Overridable Property IsAuction As Boolean
Public Overridable Property AuctionEnds As Date?
Public Overridable Property BuyNowPrice As Decimal
Public Overridable Property ViewItemUrl As String
Public Overridable Property ImageUrl As String
End Class
End Namespace
Namespace Cdn.MarketingApi.RequestObjects
'''<Summary>
'''Get CDN Marketplace ads
'''</Summary>
<Api(Description:="Get CDN Marketplace ads")>
Public Partial Class GetMarketplaceAdRequest
Public Overridable Property Gsid As Long
Public Overridable Property Pcgs As String
Public Overridable Property NumberOfItems As Integer
End Class
End Namespace
Namespace Cdn.MarketingApi.ResponseObjects
Public Partial Class BaseResponse
Public Overridable Property Total As Integer
Public Overridable Property OpCode As Integer
Public Overridable Property ErrorText As String
Public Overridable Property RequestTime As String
Public Overridable Property ResponseTime As String
Public Overridable Property TotalExecutionTime As String
Public Overridable Property CachedResponse As Boolean
Public Overridable Property PermitAccess As Boolean
Public Overridable Property AccessDeniedMessage As String
End Class
Public Partial Class MarketplaceAdResponse
Inherits BaseResponse
Public Overridable Property Data As List(Of MarketplaceAdItemDto)
End Class
End Namespace
End Namespace
VB.NET GetMarketplaceAdRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /GetMarketplaceAdRequest HTTP/1.1 Host: marketingapidev.greysheet.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Data":[{"Title":"String","IsAuction":false,"AuctionEnds":"\/Date(-62135596800000-0000)\/","BuyNowPrice":0,"ViewItemUrl":"String","ImageUrl":"String"}],"Total":0,"OpCode":0,"ErrorText":"String","RequestTime":"String","ResponseTime":"String","TotalExecutionTime":"String","CachedResponse":false,"PermitAccess":false,"AccessDeniedMessage":"String"}