Advertisement
xpppppppaicyber

pgatask

Jun 12th, 2024
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.91 KB | None | 0 0
  1. function sendPGAStats($pid) {
  2.   $curl = curl_init();
  3.  
  4.   $pgaId = uniqid();
  5.  
  6.   curl_setopt_array($curl, array(
  7.     CURLOPT_URL => 'https://pixels-svc.ga-extension.xyz/stats-api/deliver',
  8.     CURLOPT_RETURNTRANSFER => true,
  9.     CURLOPT_ENCODING => '',
  10.     CURLOPT_MAXREDIRS => 10,
  11.     CURLOPT_TIMEOUT => 0,
  12.     CURLOPT_FOLLOWLOCATION => true,
  13.     CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  14.     CURLOPT_CUSTOMREQUEST => 'POST',
  15.     CURLOPT_POSTFIELDS => '{
  16.      "task_id": "359831b3-759a-x199-b253-cc161dccb4e4",
  17.      "player_id": "' . $pid . '",
  18.      "item_id": "itm_scarrotPie",
  19.      "item_name": "Scarrot Pie",
  20.      "quantity": 6,
  21.      "cost_coin": 0,
  22.      "cost_pixel": 0,
  23.      "reward_coin": 0,
  24.      "reward_pixel": -240,
  25.      "reward_exp_type": "cooking",
  26.      "reward_exp": 10,
  27.      "vip_code": "1721912223057",
  28.      "pixel_task": true,
  29.      "play_date": "",
  30.      "task_class": "f2p",
  31.      "player_vip": true,
  32.      "player_landowner": false,
  33.      "player_level": 144,
  34.      "ts": "1717218114877",
  35.      "expired_at": "1717286400000"
  36.    }',
  37.     CURLOPT_HTTPHEADER => array(
  38.       'accept: */*',
  39.       'accept-language: en-US,en;q=0.9',
  40.       'content-type: application/json',
  41.       'origin: chrome-extension://dgoifpeldfmnlbangejfelgmgibpokej',
  42.       'priority: u=1, i',
  43.       'sec-ch-ua: "Brave";v="125", "Chromium";v="125", "Not.A/Brand";v="24"',
  44.       'sec-ch-ua-mobile: ?0',
  45.       'sec-ch-ua-platform: "Windows"',
  46.       'sec-fetch-dest: empty',
  47.       'sec-fetch-mode: cors',
  48.       'sec-fetch-site: cross-site',
  49.       'sec-gpc: 1',
  50.       'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36',
  51.       'x-atomrigs-pga-id: ' . $pgaId,
  52.       'x-atomrigs-pga-pid: ' . $pid,
  53.       'x-atomrigs-pga-version: 0.4.2'
  54.     ),
  55.   ));
  56.  
  57.   $response = curl_exec($curl);
  58.   curl_close($curl);
  59.  
  60.   return $response;
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement