-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
40 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
require_once "../vendor/autoload.php"; | ||
|
||
use PlayStation\Client; | ||
|
||
$client = new Client(["verify" => false, "proxy" => "127.0.0.1:8888"]); | ||
|
||
$client->login(getenv("PSN_PHP_TOKEN")); | ||
|
||
$me = $client->user(); | ||
|
||
echo sprintf("%s\n", $me->onlineId()); | ||
echo sprintf("\tAbout me: %s\n", $me->aboutMe()); | ||
echo sprintf("\tAvatar: %s\n", $me->avatarUrl()); | ||
echo sprintf("\tFriends with? %d\n", $me->friend()); | ||
echo sprintf("\tClose friends with? %d\n", $me->closeFriend()); | ||
echo sprintf("\tVerified? %d\n", $me->verified()); | ||
|
||
$you = $client->user("Hakoom"); | ||
|
||
echo sprintf("%s\n", $you->onlineId()); | ||
echo sprintf("\tAbout me: %s\n", $you->aboutMe()); | ||
echo sprintf("\tAvatar: %s\n", $you->avatarUrl()); | ||
echo sprintf("\tFriends with? %d\n", $you->friend()); | ||
echo sprintf("\tClose friends with? %d\n", $you->closeFriend()); | ||
echo sprintf("\tVerified? %d\n", $you->verified()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters