mirror of
https://github.com/elyby/accounts.git
synced 2024-11-06 08:11:24 +05:30
20 lines
528 B
PHP
20 lines
528 B
PHP
<?php
|
|
namespace api\tests\_pages;
|
|
|
|
class MojangApiRoute extends BasePage {
|
|
|
|
public function usernameToUuid($username, $at = null) {
|
|
$params = $at === null ? [] : ['at' => $at];
|
|
$this->getActor()->sendGET("/api/mojang/profiles/{$username}", $params);
|
|
}
|
|
|
|
public function usernamesByUuid($uuid) {
|
|
$this->getActor()->sendGET("/api/mojang/profiles/{$uuid}/names");
|
|
}
|
|
|
|
public function uuidsByUsernames($uuids) {
|
|
$this->getActor()->sendPOST('/api/mojang/profiles', $uuids);
|
|
}
|
|
|
|
}
|