Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working, Error making offer! Server response code: 401 #38

Open
prepix opened this issue Apr 10, 2017 · 9 comments
Open

Not working, Error making offer! Server response code: 401 #38

prepix opened this issue Apr 10, 2017 · 9 comments

Comments

@prepix
Copy link

prepix commented Apr 10, 2017

Is this script still working? got my login right and stuff but it won't send trade offers.
My script:

<?php
opcache_reset();
define('php-steamlogin', true);
require('main.php');
include_once("../api/AuthFunctions.php");
require_once('../classes/steam.class.php');

$SteamLogin = new SteamLogin(array(
	'username' => 'USER',
	'password' => 'PASS',
	'datapath' => dirname(__FILE__) //path to saving cache files
));

if($SteamLogin->success){
	$SteamAuth = new SteamAuth;
	$authcode = $SteamAuth->GenerateSteamGuardCode("s1xxxxxxwgqBe2AY=");
	$logindata = $SteamLogin->login('', $authcode);
	$login = array_values($logindata);
	$steamId = $login[0];
	$sessionId = $login[1]; // session id
	$cookies = $login[2]; // cookies
	$steam = new SteamTrade();
	$steam->setup($sessionId, $cookies);
	echo json_encode($logindata);
	$itemsID = [ [
    "appid" => 730,
    "contextid" => "2",
    "amount" => 1,
    "assetid" => "xxxx"
    ]];
	$result = $steam->makeOffer([
		'partnerSteamId' => "xxxx",
		'itemsFromMe' => [],
		'itemsFromThem' => $itemsID,
		'message' => "Nice trade for you"
		]);

	if($SteamLogin->error != '') echo $SteamLogin->error;
}else{
	echo $SteamLogin->error;
}
?>
@emdy
Copy link

emdy commented Apr 10, 2017

Lib makeOffer dont work!

@prepix
Copy link
Author

prepix commented Apr 10, 2017

Ah oke thanks

@emdy
Copy link

emdy commented Apr 11, 2017

@prepix what you really try to do? Its for fun or you have a goal like shop or..? I can teach you how..

@prepix
Copy link
Author

prepix commented Apr 11, 2017

Not for fun, I'm building a CSGO case opening website and I need a bot so people can deposit and withdraw items

@emdy
Copy link

emdy commented Apr 11, 2017

@prepix I can easy help you for just simbolic price if your interested?!

@prepix
Copy link
Author

prepix commented Apr 11, 2017

What do you see as a simbolic price? can you add me on skype? [email protected]

@emdy
Copy link

emdy commented Apr 11, 2017

@prepix i will add you.

@emdy
Copy link

emdy commented Apr 12, 2017

@prepix if you still interested get tradeing bot script and stop beeng a cunt than add me on skype mareksmix1

@emdy
Copy link

emdy commented Apr 12, 2017

@prepix if you still interested get tradeing bot script and stop beeng a cunt than add me on skype mareksdmix1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants