Skip to content
Permalink
Browse files

feat: character verification support

  • Loading branch information
Supamiu committed Nov 20, 2018
1 parent 7177780 commit a25a4cfc30ebe76d4594df0a695c5d8a1a32f02a
Showing with 12 additions and 1 deletion.
  1. +1 −0 src/model/schema/character/character-verification.ts
  2. +11 −1 src/xivapi.service.ts
@@ -1,5 +1,6 @@
export interface CharacterVerification {
ID: number;
Bio: string;
VerificationToken: string;
VerificationTokenPass: boolean;
}
@@ -82,7 +82,17 @@ export class XivapiService {
*/
public getCharacter(lodestoneId: number | string, options?: XivapiCharacterOptions,
details?: 'Friends' | 'Achievements' | 'Gearsets' | 'Record' | 'FreeCompany'): Observable<CharacterResponse> {
return this.request<any>(`/Character/${lodestoneId}${details ? '/' + details : ''}`, options);
return this.request<CharacterResponse>(`/Character/${lodestoneId}${details ? '/' + details : ''}`, options);
}

/**
* Gets character verification state using /character/<id>/verification endpoint
*
* @param lodestoneId LodestoneID of the character to verify.
* @param options Options of the request.
*/
public getCharacterVerification(lodestoneId: number | string, options?: XivapiCharacterOptions): Observable<CharacterVerification> {
return this.request<CharacterVerification>(`/Character/${lodestoneId}/verification`, options);
}

/**

0 comments on commit a25a4cf

Please sign in to comment.
You can’t perform that action at this time.