SpotifyApiCredentials class

Holds information about credentials to access the api.

Constructors

SpotifyApiCredentials(String? clientId, String? clientSecret, {String? accessToken, String? refreshToken, List<String>? scopes, DateTime? expiration})
SpotifyApiCredentials.withAccessToken(String? accessToken)

Properties

accessToken String?
The token that is sent to Spotify to prove the authorization of a client.
getter/setter pair
basicAuth String
no setter
canRefresh bool
Whether it's possible to refresh these credentials.
no setter
clientId String?
The client identifier for this Spotify client.
getter/setter pair
clientSecret String?
The client secret for this Spotify client.
getter/setter pair
expiration DateTime?
The date at which these credentials will expire, stored in the user's local time.
getter/setter pair
fullyQualified bool
Whether or not these credentials contain all of the required information to create a client with access to a user's private data.
no setter
hashCode int
The hash code for this object.
no setterinherited
isExpired bool
Whether or not these credentials have expired.
no setter
refreshToken String?
The token that is sent to Spotify to refresh the credentials.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopes List<String>?
The specific permissions being requested from Spotify.
getter/setter pair
tokenEndpoint Uri?
The URL of the Spotify endpoint that's used to refresh the credentials.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited