mirror of
https://github.com/elyby/accounts.git
synced 2024-12-24 22:29:51 +05:30
574d03d02f
* fix: add redirect for new "Usernames to UUIDs" endpoint location "As of 23w42a, the endpoint moved to: 'POST https://sessionserver.mojang.com/session/minecraft/profile/lookup/bulk/byname' " https://wiki.vg/Mojang_API#Usernames_to_UUIDs * add a redirect for authlib-injector too Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com> * revert: .gitignore Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com> * tests: pass new URL to existing tests Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com> * review: address requested changes Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com> * style: add type hints to MinecraftProfilesCest functions too Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com> --------- Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
15 lines
404 B
PHP
15 lines
404 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");
|
|
}
|
|
}
|