-
Notifications
You must be signed in to change notification settings - Fork 0
viruch edited this page May 23, 2011
·
22 revisions
JSON is used for the communication between Server and Client.
get_stock [ all | resource_id ] user_id
Request
{
get_stock: {
resource_id: 9,
user_id : 'ee11cbb19052e40b07aac0ca060c23ee'
}
}
Response
{
command: 'get_stock',
response: {
9: { amount: 10 }
}
}
get_resource [ all | resource_id ]
{
get_resource
get_auctions [ all | resource_id ]
get_user user_id
buy auction_id
create_auction user_id resource_id amount price timeleft_sec
login username password