HTTP Headers
This is the value the client needs to communicate with the server. The value for each client is different. Please manage your affiliate code and API key through Sveltekit's env.
Get casino list
//200
{
list: [
{
idx: number,
game_id: string,
title: string,
provider: string,
thumnail: string,
vendor: string,
type: string,
is_open: string,
reg_date: string
}
],
totalNumber: number <- Number of total lists
}
//400
Get filter menu
//200
{
type: [{name: string}],
vendor: [{name: string}]
}
Casino Launch
//200
{
link: string
}
//400
Get info
//200
{
title: string,
thumbnail: string,
vendor: string,
type: string
}
//400
Get bet result list
//200
[
{
title: string,
nick: string,
betAmount: number,
profitAmount: number
}
]
//Returned data/data to be inserted into table
//Example
import { socket } from '$lib/utils/socketConnection';
const data = {
title: string,
nick: string,
betAmount: number,
multiplier: string,
profitAmount: number
};
socket.emit('updateLatestBets', data); //send data to socket.io server
//Listen incoming data broadcasted from socket.io server
socket.on('updateLatestBets', async (data) => {
//Use the data (insert into the table with svelte)
console.log(data);
});