| GET | /GetMarketplaceAdRequest | Either Gsid or PCGS is required, not both. |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
/**
* Get CDN Marketplace ads
*/
@Api(Description="Get CDN Marketplace ads")
open class GetMarketplaceAdRequest
{
open var Gsid:Long? = null
open var Pcgs:String? = null
open var NumberOfItems:Int? = null
}
open class MarketplaceAdResponse : BaseResponse()
{
open var Data:ArrayList<MarketplaceAdItemDto>? = null
}
open class BaseResponse
{
open var Total:Int? = null
open var OpCode:Int? = null
open var ErrorText:String? = null
open var RequestTime:String? = null
open var ResponseTime:String? = null
open var TotalExecutionTime:String? = null
open var CachedResponse:Boolean? = null
open var PermitAccess:Boolean? = null
open var AccessDeniedMessage:String? = null
}
open class MarketplaceAdItemDto
{
open var Title:String? = null
open var IsAuction:Boolean? = null
open var AuctionEnds:Date? = null
open var BuyNowPrice:BigDecimal? = null
open var ViewItemUrl:String? = null
open var ImageUrl:String? = null
}
Kotlin 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"}