Advertisement
enos

tess

Jan 30th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.02 KB | None | 0 0
  1. <?php
  2. require_once 'classes/steam.class.php';
  3.  
  4. $steam = new SteamTrade();
  5.  
  6.  
  7.  
  8. $cookies = 'steamCountry=ID|9ab4328f32508bce5911ab326c868f98; steamLogin=76561198263667689||992721CDF6A2B7A9DAB57621E359A6E21C56C740; steamLoginSecure=76561198263667689||C9A7F446E388C3AFB53F5BA0D073F1BB43DBC3F4; steamMachineAuth76561198263667689=98AE98789CFE1020AC75AA4BAED657FDD40743E9; steamRememberLogin=76561198263667689||e570934e5ac6ee7d9a4526995e45f975; sessionid=4dfda82bfb56248558307d72;';
  9.  
  10.  
  11. $url = 'https://steamcommunity.com/tradeoffer/new/send';
  12.      $data = array(
  13.             'sessionid' => $sessionId,
  14.             'serverid' => '1',
  15.             'partner' => '76561198344328934',
  16.             'tradeoffermessage' => 'test',
  17.             'trade_offer_create_params' => '{"trade_offer_access_token": "l-sJuA-r"}', // use if its not vento333 friend
  18.             'json_tradeoffer' => '{"newversion":true,"version":2,"them":{"assets":[{"appid":730,"contextid":"2","amount":1,"assetid":"8798346712"}],"currency":[],"ready":false},"me":{"assets":[],"currency":[],"ready":false}}'
  19.         );
  20.         $c = curl_init();
  21.         curl_setopt($c, CURLOPT_HEADER, false);
  22.         curl_setopt($c, CURLOPT_NOBODY, false);
  23.         curl_setopt($c, CURLOPT_URL, $url);
  24.         curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
  25.         curl_setopt($c, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)");
  26.         curl_setopt($c, CURLOPT_COOKIE, $cookies);
  27.         curl_setopt($c, CURLOPT_POST, 1);
  28.         curl_setopt($c, CURLOPT_POSTFIELDS, http_build_query($data));
  29.         curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
  30.         curl_setopt($c, CURLOPT_HTTPHEADER, array('Referer: https://steamcommunity.com/tradeoffer/new/?partner=303401961'));
  31.         curl_setopt($c, CURLOPT_SSL_VERIFYPEER, 0);
  32.         curl_setopt($c, CURLOPT_FOLLOWLOCATION, 1);
  33.         curl_setopt($c, CURLOPT_CUSTOMREQUEST, strtoupper('POST'));
  34.         $response = curl_exec($c);
  35.         curl_close($c);
  36.         echo $response;
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement