// API CALL ROUTE//
https://api.gapi.lol/api/cashier/v1/auth
//API CALL //
$response = $client->request('POST', $url, [
'form_params' => [
'username' => $username, //required username from your shop
'password' => $password, //required password from your shop
]
]);
// RULES //
[
'username' => 'required',
'password' => 'required',
];
// RESULT//
{
"username": "cash100",
"userhash": "d89307fb99bd526cce27cfd52fd7a833",
"shophash": "d89307fb99bd526cce27cfd52fd7a833",
"userid": 255,
"alarm": 1,
"enabled": 1,
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjNkYzE5MTE2OTZjZjEzNGM4ZWY1Y2RkYTE4ZDUzMGEwMzBkYjc0MjhiYWRhMGI3YWU1YzgzZTg2ZmRlNWYzZmFhODNhZTI5MDM4NzQzOWRjIn0.eyJhdWQiOiIxIiwianRpIjoiM2RjMTkxMTY5NmNmMTM0YzhlZjVjZGRhMThkNTMwYTAzMGRiNzQyOGJhZGEwYjdhZTVjODNlODZmZGU1ZjNmYWE4M2FlMjkwMzg3NDM5ZGMiLCJpYXQiOjE1NjI5MjA5NTYsIm5iZiI6MTU2MjkyMDk1NiwiZXhwIjoxNTk0NTQzMzU2LCJzdWIiOiIyNTUiLCJzY29wZXMiOltdfQ.l407ZoA02Txl2mj2_tkCtlWjM7Mtq3Wkyr2IHo6XM7qAtsVgl0yFVRqrt8t_ZkLh5v6JsbVq8ou7zkY2P6qW2n73La7ckKj78avH6LuzvjgQvtE08vSQF6_18WW4wtytdAJzxaUBu7uTXazKxpxHj-8VTIvxKIiJYHZh5lmRy0nqIE77rpeszhcBqe15Nr8CryIZtoiCGjq7uIhdJUUwQX-hHPr1bfl0DF5Gns4bqDwVvQTGfkBd83izmt0YmVP2b37WGjuetOddacnCSh8-uq76KuC3tfOKpcPwg2i99qXPa-V_VpUxqZzHGblEti-HDjY-U4X2knng6dLTuHoDau48Ff-gQQ84yAigTuNAk7Vzw68uiV1AzVZ634TsKHva6vEnY9GvnI-yhXTwMvNFs5rmEpRf7kzihWjKC0a7Bu1tL8QrwOehitU8nrpEs5JudJxGQnMC6Nw9xGUTih6gX9jusVbkwFr7UdSBAhCIdaM26AKD9KlwG5vM4J0DSVZvMOAeW9B-bdkVud0UlYtWKJGwDFPHBZtZCZ7g92aMYFmx6rxyZwFXuY5CS-XjqJSzoyLDN1yvp7-s1pJqRZsTdenK4F-7jSS59KHqd9ppkaC7cNRc9cYadrPgwbsRKfBq52Mj-zsmMbIDZDw3aOLzOoxweuh62uzNR-wPzChf4ZU",
"flashSession": "mkZei2B3BoDVMChI5fxk",
"code": "200",
"status": "SUCCESS"
}
$token // GET TOKEN FROM AUTH
$params =['playerhash' => 'a976e28e6a04442d76f93126807ca396' ,'credits' => 100];
$url = https://api.gapi.lol/api/cashier/v1/profile/update/update_in // CALL URL
public function ApiCall($url, $params, $token)
{
try {
$client = new \GuzzleHttp\Client(['verify' => false,]);
$response = $client->request('POST', $url, [
'verify' => false,
'headers' => [
'Accept' => 'application/json',
'Authorization' => 'Bearer '. $token,
'X-localization' => 'en',
],
'form_params' => $params
]);
$contents = $response->getBody()->getContents();
$contents = json_decode($contents,true);
return ($contents);
} catch (RequestException $e) {
return $e;
} catch (\Exception $ex) {
return $ex;
}
}
$(document).on("click", ".creditsIN", function () {
var token = //YOUR AUTH TOKEN
var url = https://api.gapi.lol/api/cashier/v1/profile/update/update_in // CALL URL
var data = {'playerhash': '54c69066c16cd7f89612381656e4034a',credits:100};
$.ajax({
type: 'POST',
url: url,
data: data,
headers: {"Authorization": "Bearer " + token, "X-localization": 'en'},
success: function (msg) {
console.log(msg)
}
});
});
// API CALL ROUTE//
https://api.gapi.lol/api/cashier/v1/shop/get/profile2
$token = //Your token from auth
'headers' => [
'Accept' => 'application/json',
'Authorization' => 'Bearer '. $token,
'X-localization' => 'en',
],
// RESULT //
{
"shop": {
"flashSession": "vVKbTPnYa65AxCq9ONvT",
"roles": 3,
"id": 255,
"userhash": "d89307fb99bd526cce27cfd52fd7a833",
"enabled": 1,
"alarm": 1,
"email": "cash100",
"name": "cash100",
"timezone": "Europe\/Athens",
"currency": "EUR",
"credits": "1042.02", // SHOP CREDIT
"in": "111.00",
"out": "479.02",
"totalin": "2441.00",
"totalout": "479.02",
"shophash": "d89307fb99bd526cce27cfd52fd7a833",
"lang": "en"
},
"permissions": {
"allow_createuser": true,
"allow_deleteuser": true,
"allow_disableuser": true,
"allow_edituserpass": true,
"allow_alarm_on": true,
"userin_amount1": "5.00",
"userin_amount2": "10.00",
"userin_amount3": "20.00",
"userin_amount4": "50.00",
"userin_amount5": "100.00",
"userout_amount1": 5,
"userout_amount2": 10,
"userout_amount3": 20,
"userout_amount4": 50,
"userout_amount5": 100,
"allow_useroutamounts": true,
"allow_view_bonus": 1,
"bonusin_amount1": "5.00",
"bonusin_amount2": "10.00",
"bonusin_amount3": "20.00",
"bonusin_amount4": "50.00",
"bonusin_amount5": "100.00",
"riderect_cashier_on_alarm": true,
"print_receipt": false,
"voucher": false,
"afterlogout": "null",
"happy_hour_time": "12:01:00 - 11:00:00",
"happy_hour_perc": 50,
"happy_hour_hmt": 1000,
"userin_amount_value_1": "500",
"userin_amount_value_2": "1000",
"userin_amount_value_3": "2000",
"userin_amount_value_4": "5000",
"userin_amount_value_5": "10000",
"bonusin_amount_value_1": "500",
"bonusin_amount_value_2": "1000",
"bonusin_amount_value_3": "2000",
"bonusin_amount_value_4": "5000",
"bonusin_amount_value_5": "10000",
"cashier_master": true,
"limit_accounts": 100
},
"code": "200",
"status": "SUCCESS"
}
// API CALL ROUTE//
https://api.gapi.lol/api/cashier/v1/shop/get/users
$token = //Your token from auth
'headers' => [
'Accept' => 'application/json',
'Authorization' => 'Bearer '. $token,
'X-localization' => 'en',
],
//API CALL //
$response = $client->request('POST', $url, [
'form_params' => [
'length' => 'all'
]
]);
// RULES //
[
'length' => 'all',
];
// RESULT //
{
"current_page": 1,
"data": [
{
"name": "A-PC01",
"email": "cash100xxxx",
"score": "40.00",
"userhash": "fab2c9766edf9b688040a0bf251fe3e4",
"ip": "0",
"curent_game": null,
"online": 0,
"alarm": 1,
"Actions": null,
"password": "g123123123"
},
{
"name": "A-PC02",
"email": "1123123312",
"score": "53.00",
"userhash": "54c69066c16cd7f89612381656e4034a",
"ip": "0",
"curent_game": null,
"online": 0,
"alarm": 1,
"Actions": null,
"password": "12312312213312"
},
],
"per_page": 1000,
"prev_page_url": null,
"to": 114,
"total": 114,
"draw": null,
"recordsTotal": 114,
"recordsFiltered": 114,
"code": 200,
"status": "SUCCESS",
"permissions": "12:01:00 - 11:00:00"
}
// API CALL ROUTE//
https://api.gapi.lol/api/cashier/v1/profile/update/update_in
$token = //Your token from auth
'headers' => [
'Accept' => 'application/json',
'Authorization' => 'Bearer '. $token,
'X-localization' => 'en',
],
//API CALL //
$response = $client->request('POST', $url, [
'playerhash' => 'required',
'credits' => 'required', // 100 = 1.00 EUR
]
]);
// RULES //
[
'playerhash' => 'required',
'credits' => 'required|integer|not_in:0|min:0',
];
// RESULT //
{
"data": "475.02",
"bonus": 0,
"code": "200",
"msg": "IN",
"status": "SUCCESS"
}
// API CALL ROUTE//
https://api.gapi.lol/api/cashier/v1/profile/update/update_out
$token = //Your token from auth
'headers' => [
'Accept' => 'application/json',
'Authorization' => 'Bearer '. $token,
'X-localization' => 'en',
],
//API CALL //
$response = $client->request('POST', $url, [
'playerhash' => 'required',
'credits' => 'required', // 100 = 1.00 EUR
]
]);
// RULES //
$rules = [
'playerhash' => 'required',
'credits' => 'required|integer|not_in:0|min:0',
];
// RESULT //
{
"data": "99.00",
"code": "200",
"msg": "OUT",
"status": "SUCCESS"
}