/php-steamlogin

Script to obtain steamid, cookies and sessionid.

Primary LanguagePHPMIT LicenseMIT

php-steamlogin

Script to obtain steamid, cookies and sessionid.

Example

```php '', 'password' => '', 'datapath' => dirname(__FILE__) //path to saving cache files )); if($SteamLogin->success){ $logindata = $SteamLogin->login(); /* $logindata = array( 'steamid' => 'xxx', //64-bit 'sessionId' => 'xxx', 'cookies' => 'xxx=xxx; yyy=yyy; ' ); */
//You can view steamcommunity.com from created session
//$SteamLogin->view('http://steamcommunity.com/id/pandeu');

//Sending tradeoffers: https://github.com/halipso/php-steam-tradeoffers

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

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


<h1>Public Parameters</h1>
<b>error</b> and <b>success</b>

<h1>Public Methods</h1>
- <b>login([$authcode, $twofactorcode])</b> - login to steam
- <b>view($url)</b> - print page

<h1>Special thanks to</h1>
- Peter Nicholson
- http://www.hashbangcode.com/blog/netscape-http-cooke-file-parser-php

<h1>License</h1>
MIT-License