diff --git a/PocketSharp.Console/Program.cs b/PocketSharp.Console/Program.cs
index 010fa8b..7f802ec 100644
--- a/PocketSharp.Console/Program.cs
+++ b/PocketSharp.Console/Program.cs
@@ -15,18 +15,6 @@ namespace PocketSharp.Console
// please create your own application and retrieve it's key. It's a 1-step process ;-)
PocketClient client = new PocketClient("15396-f6f92101d72c8e270a6c9bb3");
- //client.Test();
-
- //System.Console.WriteLine(client.Test2());
-
- //System.Console.WriteLine("---------------------------------");
-
- //var result = client.Test3();
-
- //System.Console.WriteLine(string.Format("Code: {0}, Username: {1}", result.Code, result.Username));
-
- client.Test4("a85134a7-243c-6656-ab82-97c901");
-
System.Console.ReadKey();
}
}
diff --git a/PocketSharp/PocketClient.cs b/PocketSharp/PocketClient.cs
index e70e263..3f2191b 100644
--- a/PocketSharp/PocketClient.cs
+++ b/PocketSharp/PocketClient.cs
@@ -10,12 +10,12 @@ namespace PocketSharp
///
/// REST client used for the API communication
///
- private readonly RestClient _restClient;
+ protected readonly RestClient _restClient;
///
/// default base URL for the API, which is used, when no baseURL is delivered
///
- private static Uri defaultUrl = new Uri("https://getpocket.com/v3/");
+ protected static Uri defaultUrl = new Uri("https://getpocket.com/v3/");
///
/// base URL for the API
@@ -132,46 +132,5 @@ namespace PocketSharp
return true;
}
-
-
-
- public void Test()
- {
- var request = new RestRequest("oauth/request", Method.POST);
-
- request.AddParameter("redirect_uri", "http://ceecore.com");
-
- RequestCode rawResponse = Request(request);
-
- RequestCode = rawResponse.Code;
- }
-
- public string Test2()
- {
- return string.Format("https://getpocket.com/auth/authorize?request_token={0}&redirect_uri={1}", RequestCode, Uri.EscapeDataString("http://ceecore.com"));
- }
-
- public AccessCode Test3()
- {
- var request = new RestRequest("oauth/authorize", Method.POST);
-
- request.AddParameter("code", "fbe15035-d6b1-e4c2-590b-60de6e");
-
- AccessCode rawResponse = Request(request);
-
- return rawResponse;
- }
-
- public bool Test4(string code)
- {
- var request = new RestRequest("get", Method.POST);
-
- request.AddParameter("access_toiken", code);
- request.AddParameter("favorite", "1");
-
- AccessCode rawResponse = Request(request);
-
- return true;
- }
}
}