Skip to content

get_auctions_by_resource

servasat edited this page Jul 12, 2011 · 1 revision
get_auctions_by_resource resource_id

example

Request:

{
  command: 'get_auctions_by_resource',
  data: { 
    resource_id : 9 
  }
}

Response:

{
  command: 'get_auctions_by_resource',
  data: {
    auctions: [
      {
        auction_id: 92, 
        resource_id : 9,
        amount: 100,
        user_id: 5,
        price: 138,
        timeleft_sec: 20000
      },
      {
        auction_id: 102, 
        resource_id : 9,
        amount: 5,
        user_id: 2,
        price: 32,
        timeleft_sec: 2343432
      }
    ]
  }
}
Clone this wiki locally