Skip to content

Commit

Permalink
Added loginMobile() and getDataForPlatformType() methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Allyans3 committed Jun 21, 2023
1 parent 9c7c9a6 commit 812a4ed
Show file tree
Hide file tree
Showing 4 changed files with 440 additions and 248 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ require "vendor/autoload.php";

$auth = new SteamAuth('login', 'password', 'shared_secret');

// For WebBrowser
$auth->login();
// or for MobileApp
$auth->loginMobile();

// You can check if you are authorized
$auth->isAuthorized();
Expand All @@ -60,6 +63,9 @@ $auth->getCookies();
// or by host
$auth->getCookiesByHost();

// Getting data for platform type
$auth->getDataForPlatformType(1) // 1 => Steam Client, 2 => Web Browser, 3 => Mobile App

```

## Cookie storage
Expand Down Expand Up @@ -96,7 +102,10 @@ $cookieOptions = [
"sessionid" => "*******",
"steamCountry" => "*******",
"steamLoginSecure" => "*******"
]
],
"checkout.steampowered.com" => [
"steamLoginSecure" => "*******"
]
]
];

Expand Down
Loading

0 comments on commit 812a4ed

Please sign in to comment.