diff --git a/Octokit/Clients/IUserFollowersClient.cs b/Octokit/Clients/IUserFollowersClient.cs
index f10361a7..b5b7487a 100644
--- a/Octokit/Clients/IUserFollowersClient.cs
+++ b/Octokit/Clients/IUserFollowersClient.cs
@@ -60,7 +60,7 @@ namespace Octokit
/// See the API documentation for more information.
///
///
- Task CheckFollowingForCurrent(string following);
+ Task IsFollowingForCurrent(string following);
///
/// Check if one user follows another user
@@ -71,7 +71,7 @@ namespace Octokit
/// See the API documentation for more information.
///
///
- Task CheckFollowing(string login, string following);
+ Task IsFollowing(string login, string following);
///
/// Follow a user
@@ -92,6 +92,6 @@ namespace Octokit
///
///
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Unfollow")]
- Task Unfollow(string login);
+ Task Unfollow(string login);
}
}
diff --git a/Octokit/Clients/UserFollowersClient.cs b/Octokit/Clients/UserFollowersClient.cs
index d0f6279b..ebd3c9a3 100644
--- a/Octokit/Clients/UserFollowersClient.cs
+++ b/Octokit/Clients/UserFollowersClient.cs
@@ -32,7 +32,7 @@ namespace Octokit
///
public Task> GetAllForCurrent()
{
- return ApiConnection.GetAll(new Uri("/user/followers"));
+ return ApiConnection.GetAll(ApiUrls.Followers());
}
///
@@ -43,11 +43,12 @@ namespace Octokit
/// See the API documentation for more information.
///
///
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1305:SpecifyIFormatProvider", MessageId = "System.String.Format(System.String,System.Object[])"), System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1305:SpecifyIFormatProvider", MessageId = "System.String.Format(System.String,System.Object)")]
public Task> GetAll(string login)
{
Ensure.ArgumentNotNullOrEmptyString(login, "login");
- return ApiConnection.GetAll(new Uri(String.Format("/users/{0}/followers", login)));
+ return ApiConnection.GetAll(ApiUrls.Followers(login));
}
///
@@ -59,7 +60,7 @@ namespace Octokit
///
public Task> GetFollowingForCurrent()
{
- return ApiConnection.GetAll(new Uri("/user/following"));
+ return ApiConnection.GetAll(ApiUrls.Following());
}
///
@@ -70,11 +71,12 @@ namespace Octokit
/// See the API documentation for more information.
///
///
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1305:SpecifyIFormatProvider", MessageId = "System.String.Format(System.String,System.Object[])"), System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1305:SpecifyIFormatProvider", MessageId = "System.String.Format(System.String,System.Object)")]
public Task> GetFollowing(string login)
{
Ensure.ArgumentNotNullOrEmptyString(login, "login");
- return ApiConnection.GetAll(new Uri(String.Format("/users/{0}/following", login)));
+ return ApiConnection.GetAll(ApiUrls.Following(login));
}
///
@@ -85,13 +87,13 @@ namespace Octokit
/// See the API documentation for more information.
///
///
- public async Task CheckFollowingForCurrent(string following)
+ public async Task IsFollowingForCurrent(string following)
{
Ensure.ArgumentNotNullOrEmptyString(following, "following");
try
{
- var response = await Connection.GetAsync