@@ -10,16 +10,28 @@ namespace SpotifyAPI.Web
10
10
public class ClientCredentialsAuthenticator : IAuthenticator
11
11
{
12
12
/// <summary>
13
- /// Initiate a new instance. The first token will be fetched when the first API call occurs
13
+ /// Initiate a new instance. The initial token will be fetched when the first API call occurs.
14
14
/// </summary>
15
15
/// <param name="clientId">
16
- /// The ClientID, defined in a spotify application in your Spotify Developer Dashboard
16
+ /// The ClientID, defined in a spotify application in your Spotify Developer Dashboard.
17
17
/// </param>
18
18
/// <param name="clientSecret">
19
- /// The ClientID , defined in a spotify application in your Spotify Developer Dashboard
19
+ /// The ClientSecret , defined in a spotify application in your Spotify Developer Dashboard.
20
20
/// </param>
21
21
public ClientCredentialsAuthenticator ( string clientId , string clientSecret ) : this ( clientId , clientSecret , null ) { }
22
22
23
+ /// <summary>
24
+ /// Initiate a new instance. The initial token is provided and will be used if not expired
25
+ /// </summary>
26
+ /// <param name="clientId">
27
+ /// The ClientID, defined in a spotify application in your Spotify Developer Dashboard.
28
+ /// </param>
29
+ /// <param name="clientSecret">
30
+ /// The ClientSecret, defined in a spotify application in your Spotify Developer Dashboard.
31
+ /// </param>
32
+ /// <param name="token">
33
+ /// An optional inital token received earlier.
34
+ /// </param>
23
35
public ClientCredentialsAuthenticator ( string clientId , string clientSecret , ClientCredentialsTokenResponse ? token )
24
36
{
25
37
Ensure . ArgumentNotNullOrEmptyString ( clientId , nameof ( clientId ) ) ;
0 commit comments