diff --git a/FeedlySharp/Endpoints/Auth.cs b/FeedlySharp/Endpoints/Auth.cs
index 4337a40..b3e3962 100644
--- a/FeedlySharp/Endpoints/Auth.cs
+++ b/FeedlySharp/Endpoints/Auth.cs
@@ -1,8 +1,6 @@
using System;
using System.Collections.Generic;
-using System.Linq;
using System.Net;
-using System.Text;
using System.Threading.Tasks;
using FeedlySharp.Extensions;
using FeedlySharp.Models;
@@ -13,6 +11,13 @@ namespace FeedlySharp
{
public partial class FeedlyClient
{
+ ///
+ /// Creates the authentication URI to redirect the user to.
+ ///
+ /// auth-endpoint (https://developer.feedly.com/v3/auth/#authenticating-a-user-and-obtaining-a-code)
+ /// The scope.
+ /// The state which is passed and returned when finished.
+ ///
public string GetAuthenticationUri(string scope = "subscriptions", string state = default(String))
{
return String.Format("{0}/v3/auth/auth?redirect_uri={1}&client_id={2}&scope={3}&state={4}&response_type=code",
@@ -24,13 +29,21 @@ namespace FeedlySharp
);
}
-
+ ///
+ /// Parses the authentication response URI and creates the response object.
+ ///
+ /// The URI where the user has been redirected to after authentication.
+ ///
public AuthenticationResponse ParseAuthenticationResponseUri(string uri)
{
return ParseAuthenticationResponseUri(new Uri(uri, UriKind.Absolute));
}
-
+ ///
+ /// Parses the authentication response URI and creates the response object.
+ ///
+ /// The URI where the user has been redirected to after authentication.
+ ///
public AuthenticationResponse ParseAuthenticationResponseUri(Uri uri)
{
Dictionary queryParams = uri.ParseQueryString();
@@ -46,6 +59,13 @@ namespace FeedlySharp
}
+ ///
+ /// Request to get the access token.
+ ///
+ /// auth-endpoint (https://developer.feedly.com/v3/auth/#exchanging-a-code-for-a-refresh-token-and-an-access-token)
+ /// The authentication code.
+ /// The cancellation token.
+ ///
public async Task RequestAccessToken(string authenticationCode, CancellationToken cancellationToken = default(CancellationToken))
{
return await Client.Request(HttpMethod.Post, "v3/auth/token", new Dictionary()
@@ -59,6 +79,13 @@ namespace FeedlySharp
}
+ ///
+ /// Request to get a new refresh token and update authentication.
+ ///
+ /// auth-endpoint (https://developer.feedly.com/v3/auth/#using-a-refresh-token)
+ /// The current refresh token.
+ /// The cancellation token.
+ ///
public async Task RequestRefreshToken(string refreshToken, CancellationToken cancellationToken = default(CancellationToken))
{
return await Client.Request(HttpMethod.Post, "v3/auth/token", new Dictionary()
@@ -71,6 +98,13 @@ namespace FeedlySharp
}
+ ///
+ /// Revokes the current refresh token and logs out.
+ ///
+ /// auth-endpoint (https://developer.feedly.com/v3/auth/#revoking-a-refresh-token)
+ /// The refresh token.
+ /// The cancellation token.
+ ///
public async Task RevokeRefreshToken(string refreshToken, CancellationToken cancellationToken = default(CancellationToken))
{
await Client.Request