GW2v2TokenInfo

data class GW2v2TokenInfo(val id: String, val name: String, val permissions: List<String>, val type: String, val subtokenDetails: GW2v2TokenInfo.SubtokenDetails? = null)

Information about an API key.

Parameters

id

the API key that was requested

name

the name given to the API key by the account owner

permissions

an array of strings describing which permissions the API key has

type

the type of the access token given

subtokenDetails

Constructors

Link copied to clipboard
constructor(id: String, name: String, permissions: List<String>, type: String, subtokenDetails: GW2v2TokenInfo.SubtokenDetails? = null)

Types

Link copied to clipboard
@Serializable
data class SubtokenDetails(val expiresAt: String, val issuedAt: String, val urls: List<String>)

Additional information about a subtoken

Properties

Link copied to clipboard
val id: String

This field holds the API key that was requested.

Link copied to clipboard

This field holds the name given to the API key by the account owner.

Link copied to clipboard

This field holds an array of strings describing which permissions the API key has.

Link copied to clipboard
@SerialName(value = "subtoken_details")
val subtokenDetails: GW2v2TokenInfo.SubtokenDetails? = null

This field holds .

Link copied to clipboard

This field holds the type of the access token given.