accounts/api/tests/_pages/MojangApiRoute.php

16 lines
405 B
PHP
Raw Normal View History

<?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");
}
2023-11-20 06:46:44 +05:30
}