Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once 'classes/steam.class.php';
- $steam = new SteamTrade();
- $cookies = 'steamCountry=ID|9ab4328f32508bce5911ab326c868f98; steamLogin=76561198263667689||992721CDF6A2B7A9DAB57621E359A6E21C56C740; steamLoginSecure=76561198263667689||C9A7F446E388C3AFB53F5BA0D073F1BB43DBC3F4; steamMachineAuth76561198263667689=98AE98789CFE1020AC75AA4BAED657FDD40743E9; steamRememberLogin=76561198263667689||e570934e5ac6ee7d9a4526995e45f975; sessionid=4dfda82bfb56248558307d72;';
- $url = 'https://steamcommunity.com/tradeoffer/new/send';
- $data = array(
- 'sessionid' => $sessionId,
- 'serverid' => '1',
- 'partner' => '76561198344328934',
- 'tradeoffermessage' => 'test',
- 'trade_offer_create_params' => '{"trade_offer_access_token": "l-sJuA-r"}', // use if its not vento333 friend
- 'json_tradeoffer' => '{"newversion":true,"version":2,"them":{"assets":[{"appid":730,"contextid":"2","amount":1,"assetid":"8798346712"}],"currency":[],"ready":false},"me":{"assets":[],"currency":[],"ready":false}}'
- );
- $c = curl_init();
- curl_setopt($c, CURLOPT_HEADER, false);
- curl_setopt($c, CURLOPT_NOBODY, false);
- curl_setopt($c, CURLOPT_URL, $url);
- curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
- 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)");
- curl_setopt($c, CURLOPT_COOKIE, $cookies);
- curl_setopt($c, CURLOPT_POST, 1);
- curl_setopt($c, CURLOPT_POSTFIELDS, http_build_query($data));
- curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($c, CURLOPT_HTTPHEADER, array('Referer: https://steamcommunity.com/tradeoffer/new/?partner=303401961'));
- curl_setopt($c, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt($c, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($c, CURLOPT_CUSTOMREQUEST, strtoupper('POST'));
- $response = curl_exec($c);
- curl_close($c);
- echo $response;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement