@@ -31,7 +31,7 @@ export class AccountV1 extends RiotApiService {
3131 * @returns {Promise<AxiosResponse<AccountV1.AccountDto>> }
3232 */
3333 public byPuuid ( puuid : string ) : Promise < AxiosResponse < AccountV1 . AccountDto > > {
34- return this . axios . get ( `${ this . apiRegion . url . api } /riot/account/v1/accounts/by-puuid/${ puuid } ` ) ;
34+ return this . axios . get ( `${ this . apiRegion . url . continent } /riot/account/v1/accounts/by-puuid/${ puuid } ` ) ;
3535 }
3636
3737 /**
@@ -41,28 +41,27 @@ export class AccountV1 extends RiotApiService {
4141 * @returns {Promise<AxiosResponse<AccountV1.AccountDto>> }
4242 */
4343 public byRiotId ( gameName : string , tagLine : string ) : Promise < AxiosResponse < AccountV1 . AccountDto > > {
44- return this . axios . get ( `${ this . apiRegion . url . api } /riot/account/v1/accounts/by-riot-id/${ gameName } /${ tagLine } ` ) ;
44+ return this . axios . get ( `${ this . apiRegion . url . continent } /riot/account/v1/accounts/by-riot-id/${ gameName } /${ tagLine } ` ) ;
4545 }
4646
4747 /**
4848 * Get active shard for a player
4949 * @param {string } puuid Player UUID
50- * @param {string } game Game (default: val)
5150 * @returns {Promise<AxiosResponse<AccountV1.ActiveShardDto>> }
5251 */
53- public activeShardsByGameAndPuuid ( puuid : string , game : "val" | "lor" = "val" ) : Promise < AxiosResponse < AccountV1 . ActiveShardDto > > {
54- return this . axios . get ( `${ this . apiRegion . url . api } /riot/account/v1/active-shards/by-game/${ game } /by-puuid/${ puuid } ` ) ;
52+ public activeShardsByGameAndPuuid ( puuid : string ) : Promise < AxiosResponse < AccountV1 . ActiveShardDto > > {
53+ return this . axios . get ( `${ this . apiRegion . url . continent } /riot/account/v1/active-shards/by-game/val /by-puuid/${ puuid } ` ) ;
5554 }
5655
5756 /**
58- * ! Not For Public Use
57+ * ! This API service is required your project to be registered by Riot Games.
5958 *
6059 * Get account by access token
6160 * @param {string } authorization (Header Parameters)
6261 * @returns {Promise<AxiosResponse<AccountV1.AccountDto>> }
6362 */
6463 public byAccessToken ( authorization : string ) : Promise < AxiosResponse < AccountV1 . AccountDto > > {
65- return this . axios . get ( `${ this . apiRegion . url . api } /riot/account/v1/accounts/me` , {
64+ return this . axios . get ( `${ this . apiRegion . url . continent } /riot/account/v1/accounts/me` , {
6665 headers : {
6766 Authorization : authorization
6867 }
0 commit comments