halipso / php-steam-tradeoffers

Steam Trade Offers for PHP (based on node.js library by Alex7Kom)
77 stars 31 forks source link

Access denied #40

Open Wolterhon opened 7 years ago

Wolterhon commented 7 years ago

I don't know why, but I get "Error: Access denied". My code: `<?php define('php-steamlogin', true); require('main.php'); require_once('classes/steam.class.php'); include_once("./api/AuthFunctions.php"); $SteamAuth = new SteamAuth; $twofactorcodeis = $SteamAuth->GenerateSteamGuardCode("mycode");

$SteamLogin = new SteamLogin(array( 'username' => 'login', 'password' => 'pass', 'datapath' => dirname(FILE) ));

if($SteamLogin->success){ $logindata = $SteamLogin->login(null, $twofactorcodeis);

$steam = new SteamTrade();
$steam->setup($logindata['sessionId'],$logindata['cookies']);
$steam->loadMyInventory(730,1);

if($SteamLogin->error != '') echo $SteamLogin->error;

}else{ echo $SteamLogin->error; } ?>`

With login details everything is fine, script of other guy successfully tells me sessionId, cookies and steamId. But with loading my inventory something went wrong...

emdy commented 7 years ago

Lib is bloken! I (made/have) php full bot script - tradeoffers, mobile auth, curl apis to get inv. etc. for 100euro. Your future not myne.

Wolterhon commented 7 years ago

Why do you think it's broken? And 100 euro is too much for just a lib that has free analogs.

Wolterhon commented 7 years ago

Could you give me just part with tradeoffers? I don't need other ones.

Wolterhon commented 7 years ago

Answer please

emdy commented 7 years ago

I made script from zero from research in steam logs. If you think free stuff gona let you build shop or gambling site than ur wrong :(

emdy commented 7 years ago

There is even more steam apis that you didnt or wount know because there not public.

Wolterhon commented 7 years ago

You didn't answer why do you think it's broken. Everything you told me upper are things that I don't need at all.

Wolterhon commented 7 years ago

I just need tradeoffers PHP api.

emdy commented 7 years ago

Because in this lib all php curl need to be updated. You need tradeoffers and mobile auth togther and than you can trade fully.

Wolterhon commented 7 years ago

I don't need mobile auth, I have another scpipt of another cool man. Or I can use escrow abuse.

emdy commented 7 years ago

No one gives you correct answer for fun. My last word: pay or learn by urself!

Wolterhon commented 7 years ago

I'll learn by myself)

Wolterhon commented 7 years ago

Everything is fine now :) I use node.js.