mirror of
				https://github.com/elyby/accounts.git
				synced 2025-05-31 14:11:46 +05:30 
			
		
		
		
	* 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");
 | 
						|
    }
 | 
						|
}
 |