Class SkillsGameOnApiClient
Constructors
constructor
Parameters
Default value apiConfiguration: ApiConfiguration = {apiClient: new DefaultApiClient(),apiEndpoint: 'https://api.amazongameon.com/v1'}
Properties
Protected apiConfiguration
apiConfiguration: ApiConfiguration
Methods
addAttempts
addAttempts( matchId: string , sessionId: string , xApiKey: string , addAttemptsRequest: AddAttemptsRequest ) : Promise < AddAttemptsResponse >
Parameters
matchId: string
sessionId: string
xApiKey: string
addAttemptsRequest: AddAttemptsRequest
Returns Promise < AddAttemptsResponse >
addPlayerTournament
addPlayerTournament( sessionId: string , xApiKey: string , addPlayerTournamentRequest: AddPlayerTournamentRequest ) : Promise < AddPlayerTournamentResponse >
Parameters
sessionId: string
xApiKey: string
addPlayerTournamentRequest: AddPlayerTournamentRequest
Returns Promise < AddPlayerTournamentResponse >
authPlayer
authPlayer( xApiKey: string , authPlayerRequest: AuthPlayerRequest ) : Promise < AuthPlayerResponse >
Parameters
xApiKey: string
authPlayerRequest: AuthPlayerRequest
Returns Promise < AuthPlayerResponse >
claimPrizeList
claimPrizeList( sessionId: string , xApiKey: string , claimPrizeListRequest: ClaimPrizeListRequest ) : Promise < ClaimPrizeListResponse >
Parameters
sessionId: string
xApiKey: string
claimPrizeListRequest: ClaimPrizeListRequest
Returns Promise < ClaimPrizeListResponse >
enterMatch
enterMatch( matchId: string , sessionId: string , xApiKey: string , enterMatchRequest: EnterMatchRequest ) : Promise < EnterMatchResponse >
Parameters
matchId: string
sessionId: string
xApiKey: string
enterMatchRequest: EnterMatchRequest
Returns Promise < EnterMatchResponse >
enterMatchForPlayer
enterMatchForPlayer( enterMatchParams: EnterMatchParams ) : Promise < EnterMatchResponse >
Parameters
Returns Promise < EnterMatchResponse >
EnterMatchResponse
enterPlayerTournament
enterPlayerTournament( sessionId: string , xApiKey: string , tournamentId: string , enterTournamentRequest: EnterTournamentRequest ) : Promise < EnterTournamentResponse >
Parameters
sessionId: string
xApiKey: string
tournamentId: string
enterTournamentRequest: EnterTournamentRequest
Returns Promise < EnterTournamentResponse >
enterTournament
enterTournament( sessionId: string , xApiKey: string , tournamentId: string , enterTournamentRequest: EnterTournamentRequest ) : Promise < EnterTournamentResponse >
Parameters
sessionId: string
xApiKey: string
tournamentId: string
enterTournamentRequest: EnterTournamentRequest
Returns Promise < EnterTournamentResponse >
enterTournamentForPlayer
Parameters
Returns Promise < EnterTournamentResponse >
EnterTournamentResponse
fulfillPrizeList
fulfillPrizeList( sessionId: string , xApiKey: string , fulfillPrizeListRequest: FulfillPrizeListRequest ) : Promise < FulfillPrizeListResponse >
Parameters
sessionId: string
xApiKey: string
fulfillPrizeListRequest: FulfillPrizeListRequest
Returns Promise < FulfillPrizeListResponse >
getCombinationLeaderboards
Parameters
__namedParameters: object
matchId: string
playerNeighborsLimit: number
topScoresLimit: number
CombinationLeaderboard
getMatchDetails
getMatchDetails( matchId: string , sessionId: string , xApiKey: string , playerAttributes?: undefined | string ) : Promise < GetMatchDetailsResponse >
Parameters
matchId: string
sessionId: string
xApiKey: string
Optional playerAttributes: undefined | string
Returns Promise < GetMatchDetailsResponse >
getMatchDetailsForPlayer
Parameters
Returns Promise < GetMatchDetailsResponse >
GetMatchDetailsResponse
getMatchLeaderboard
getMatchLeaderboard( matchId: string , xApiKey: string , sessionId?: undefined | string , limit?: undefined | string , currentPlayerNeighbors?: undefined | string , cursor?: undefined | string ) : Promise < GetMatchLeaderboardResponse >
Parameters
matchId: string
xApiKey: string
Optional sessionId: undefined | string
Optional limit: undefined | string
Optional currentPlayerNeighbors: undefined | string
Optional cursor: undefined | string
Returns Promise < GetMatchLeaderboardResponse >
getMatchLeaderboardForPlayer
getMatchLeaderboardForPlayer( getLeaderboardParams: GetLeaderboardParams ) : Promise < GetMatchLeaderboardResponse >
getMatchList
getMatchList( xApiKey: string , sessionId: string , matchType?: undefined | string , limit?: undefined | string , playerAttributes?: undefined | string , period?: undefined | string , filterBy?: undefined | string ) : Promise < GetMatchListResponse >
Parameters
xApiKey: string
sessionId: string
Optional matchType: undefined | string
Optional limit: undefined | string
Optional playerAttributes: undefined | string
Optional period: undefined | string
Optional filterBy: undefined | string
Returns Promise < GetMatchListResponse >
getMatchListForPlayer
getMatchListForPlayer( getMatchesParams: GetMatchesParams ) : Promise < GetMatchListResponse >
Parameters
Returns Promise < GetMatchListResponse >
GetMatchListResponse
getPlayerTournamentDetails
getPlayerTournamentDetails( sessionId: string , xApiKey: string , tournamentId: string ) : Promise < GetPlayerTournamentDetailsResponse >
Parameters
sessionId: string
xApiKey: string
tournamentId: string
Returns Promise < GetPlayerTournamentDetailsResponse >
getPlayerTournamentList
getPlayerTournamentList( xApiKey: string , sessionId: string , queryBy?: undefined | string , limit?: undefined | string , cursor?: undefined | string , streamingPlatform?: undefined | string , period?: undefined | string , filterBy?: undefined | string ) : Promise < GetPlayerTournamentListResponse >
Parameters
xApiKey: string
sessionId: string
Optional queryBy: undefined | string
Optional limit: undefined | string
Optional cursor: undefined | string
Optional streamingPlatform: undefined | string
Optional period: undefined | string
Optional filterBy: undefined | string
Returns Promise < GetPlayerTournamentListResponse >
getPrizeDetails
getPrizeDetails( sessionId: string , xApiKey: string , prizeId: string ) : Promise < GetPrizeDetailsResponse >
Parameters
sessionId: string
xApiKey: string
prizeId: string
Returns Promise < GetPrizeDetailsResponse >
getTeamDetails
getTeamDetails( sessionId: string , xApiKey: string , teamId: string ) : Promise < GetTeamDetailsResponse >
Parameters
sessionId: string
xApiKey: string
teamId: string
Returns Promise < GetTeamDetailsResponse >
getTournamentDetails
getTournamentDetails( sessionId: string , tournamentId: string , xApiKey: string , playerAttributes?: undefined | string ) : Promise < GetTournamentDetailsResponse >
Parameters
sessionId: string
tournamentId: string
xApiKey: string
Optional playerAttributes: undefined | string
Returns Promise < GetTournamentDetailsResponse >
getTournamentDetailsForPlayer
getTournamentList
getTournamentList( xApiKey: string , sessionId: string , limit?: undefined | string , participantType?: undefined | string , playerAttributes?: undefined | string , period?: undefined | string , filterBy?: undefined | string ) : Promise < GetTournamentListResponse >
Parameters
xApiKey: string
sessionId: string
Optional limit: undefined | string
Optional participantType: undefined | string
Optional playerAttributes: undefined | string
Optional period: undefined | string
Optional filterBy: undefined | string
Returns Promise < GetTournamentListResponse >
getTournamentListForPlayer
getTournamentListForPlayer( getTournamentsParams: GetTournamentsParams ) : Promise < GetTournamentListResponse >
getTournamentsByTitle
getTournamentsByTitle( tournamentName: string , player: Player ) : Promise < GetTournamentListResponseTournament [] >
initializeNewAugmentedPlayer
initializeNewAugmentedPlayer( __namedParameters: object ) : Promise < AugmentedPlayer >
Parameters
__namedParameters: object
appBuildType: "development" | "release"
deviceOSType: undefined | "alexa" | "fireos" | "android" | "ios" | "pc" | "mac" | "linux" | "xbox" | "playstation" | "nintendo" | "html"
gameApiKey: string
AugmentedPlayer
initializeNewPlayer
initializeNewPlayer( __namedParameters: object ) : Promise < Player >
Parameters
__namedParameters: object
appBuildType: "development" | "release"
deviceOSType: undefined | "alexa" | "fireos" | "android" | "ios" | "pc" | "mac" | "linux" | "xbox" | "playstation" | "nintendo" | "html"
gameApiKey: string
Returns Promise < Player >
Player
Protected invoke
invoke( method: string , endpoint: string , path: string , pathParams: Map < string , string > , queryParams: Map < string , string > , headerParams: Array < object > , bodyParam: any , errors: Map < number , string > ) : Promise < any >
Parameters
method: string
endpoint: string
path: string
pathParams: Map < string , string >
queryParams: Map < string , string >
headerParams: Array < object >
bodyParam: any
errors: Map < number , string >
Returns Promise < any >
matchesMatchIdAttemptsOptions
matchesMatchIdAttemptsOptions( ) : Promise < void >
matchesMatchIdEnterOptions
matchesMatchIdEnterOptions( ) : Promise < void >
matchesMatchIdLeaderboardOptions
matchesMatchIdLeaderboardOptions( ) : Promise < void >
matchesMatchIdOptions
matchesMatchIdOptions( ) : Promise < void >
matchesMatchIdScoreOptions
matchesMatchIdScoreOptions( ) : Promise < void >
matchesOptions
matchesOptions( ) : Promise < void >
playerTournamentsOptions
playerTournamentsOptions( ) : Promise < void >
playerTournamentsTournamentIdEnterOptions
playerTournamentsTournamentIdEnterOptions( ) : Promise < void >
playerTournamentsTournamentIdOptions
playerTournamentsTournamentIdOptions( ) : Promise < void >
playersAuthOptions
playersAuthOptions( ) : Promise < void >
playersOptions
playersOptions( ) : Promise < void >
playersPatch
playersPatch( xApiKey: string , sessionId?: undefined | string ) : Promise < void >
Parameters
xApiKey: string
Optional sessionId: undefined | string
Returns Promise < void >
playersPut
playersPut( sessionId: string , xApiKey: string ) : Promise < void >
Parameters
sessionId: string
xApiKey: string
Returns Promise < void >
playersRegisterOptions
playersRegisterOptions( ) : Promise < void >
playersStreamingPlatformAccountLinkingCodeOptions
playersStreamingPlatformAccountLinkingCodeOptions( ) : Promise < void >
prizesClaimOptions
prizesClaimOptions( ) : Promise < void >
prizesFulfillOptions
prizesFulfillOptions( ) : Promise < void >
prizesPrizeIdOptions
prizesPrizeIdOptions( ) : Promise < void >
refreshPlayerSession
refreshPlayerSession<U>( __namedParameters: object ) : Promise < U >
Type parameters
Parameters
__namedParameters: object
appBuildType: "development" | "release"
deviceOSType: undefined | "alexa" | "fireos" | "android" | "ios" | "pc" | "mac" | "linux" | "xbox" | "playstation" | "nintendo" | "html"
gameApiKey: string
player: U
refreshBufferInMinutes: undefined | number
Returns Promise < U >
Player
registerPlayer
registerPlayer( xApiKey: string , registerPlayerRequest: RegisterPlayerRequest ) : Promise < RegisterPlayerResponse >
Parameters
xApiKey: string
registerPlayerRequest: RegisterPlayerRequest
Returns Promise < RegisterPlayerResponse >
submitScore
submitScore( matchId: string , sessionId: string , xApiKey: string , submitScoreRequest: SubmitScoreRequest ) : Promise < void >
Parameters
matchId: string
sessionId: string
xApiKey: string
submitScoreRequest: SubmitScoreRequest
Returns Promise < void >
submitScoreForPlayer
Parameters
Returns Promise < void >
teamsTeamIdOptions
teamsTeamIdOptions( ) : Promise < void >
tournamentsOptions
tournamentsOptions( ) : Promise < void >
tournamentsTournamentIdEnterOptions
tournamentsTournamentIdEnterOptions( ) : Promise < void >
tournamentsTournamentIdOptions
tournamentsTournamentIdOptions( ) : Promise < void >
updatePlayerTournament
updatePlayerTournament( sessionId: string , xApiKey: string , tournamentId: string , updatePlayerTournamentRequest: UpdatePlayerTournamentRequest ) : Promise < UpdatePlayerTournamentResponse >
Parameters
sessionId: string
xApiKey: string
tournamentId: string
updatePlayerTournamentRequest: UpdatePlayerTournamentRequest
Returns Promise < UpdatePlayerTournamentResponse >
updatePlayerTournament_0
updatePlayerTournament_0( sessionId: string , xApiKey: string , tournamentId: string , updatePlayerTournamentRequest: UpdatePlayerTournamentRequest ) : Promise < UpdatePlayerTournamentResponse >
Parameters
sessionId: string
xApiKey: string
tournamentId: string
updatePlayerTournamentRequest: UpdatePlayerTournamentRequest
Returns Promise < UpdatePlayerTournamentResponse >
useStreamingPlatformAccountLinkingCode
useStreamingPlatformAccountLinkingCode( sessionId: string , xApiKey: string , useStreamingPlatformAccountLinkingCodeRequest: UseStreamingPlatformAccountLinkingCodeRequest ) : Promise < void >
Parameters
sessionId: string
xApiKey: string
useStreamingPlatformAccountLinkingCodeRequest: UseStreamingPlatformAccountLinkingCodeRequest
Returns Promise < void >
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Type alias with type parameter
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
Brought to you with ❤ by the Alexa Games team at Amazon. © 2019, Amazon.com, Inc. or its affiliates. All Rights Reserved.
GameOnApiClient extension providing additional convenience methods