| GET | /GetMarketplaceAdRequest | Either Gsid or PCGS is required, not both. |
|---|
namespace Cdn.MarketingApi.Dto
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type BaseResponse() =
member val Total:Int32 = new Int32() with get,set
member val OpCode:Int32 = new Int32() with get,set
member val ErrorText:String = null with get,set
member val RequestTime:String = null with get,set
member val ResponseTime:String = null with get,set
member val TotalExecutionTime:String = null with get,set
member val CachedResponse:Boolean = new Boolean() with get,set
member val PermitAccess:Boolean = new Boolean() with get,set
member val AccessDeniedMessage:String = null with get,set
[<AllowNullLiteral>]
type MarketplaceAdItemDto() =
member val Title:String = null with get,set
member val IsAuction:Boolean = new Boolean() with get,set
member val AuctionEnds:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val BuyNowPrice:Decimal = new Decimal() with get,set
member val ViewItemUrl:String = null with get,set
member val ImageUrl:String = null with get,set
[<AllowNullLiteral>]
type MarketplaceAdResponse() =
inherit BaseResponse()
member val Data:ResizeArray<MarketplaceAdItemDto> = null with get,set
///<summary>
///Get CDN Marketplace ads
///</summary>
[<Api(Description="Get CDN Marketplace ads")>]
[<AllowNullLiteral>]
type GetMarketplaceAdRequest() =
member val Gsid:Int64 = new Int64() with get,set
member val Pcgs:String = null with get,set
member val NumberOfItems:Int32 = new Int32() with get,set
F# GetMarketplaceAdRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Data:
[
{
Title: String,
IsAuction: False,
AuctionEnds: 0001-01-01,
BuyNowPrice: 0,
ViewItemUrl: String,
ImageUrl: String
}
],
Total: 0,
OpCode: 0,
ErrorText: String,
RequestTime: String,
ResponseTime: String,
TotalExecutionTime: String,
CachedResponse: False,
PermitAccess: False,
AccessDeniedMessage: String
}