Skip to content

Commit 3e0c4e4

Browse files
committed
documentation for credentials authenticator
1 parent ec08baf commit 3e0c4e4

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

SpotifyAPI.Web/Authenticators/ClientCredentialsAuthenticator.cs

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,28 @@ namespace SpotifyAPI.Web
1010
public class ClientCredentialsAuthenticator : IAuthenticator
1111
{
1212
/// <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.
1414
/// </summary>
1515
/// <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.
1717
/// </param>
1818
/// <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.
2020
/// </param>
2121
public ClientCredentialsAuthenticator(string clientId, string clientSecret) : this(clientId, clientSecret, null) { }
2222

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>
2335
public ClientCredentialsAuthenticator(string clientId, string clientSecret, ClientCredentialsTokenResponse? token)
2436
{
2537
Ensure.ArgumentNotNullOrEmptyString(clientId, nameof(clientId));

0 commit comments

Comments
 (0)