Source

stacky / trunk / source / Stacky / StackyClient / NetworkMethods.cs

Diff from to

File trunk/source/Stacky/StackyClient/NetworkMethods.cs

         /// <summary>
         /// See: http://api.stackexchange.com/docs/read-access-tokens
         /// </summary>
-        public IPagedList<AccessToken> ReadAccessTokens(IEnumerable<string> tokens, int? page = null, int? pageSize = null, string filter = null)
+        public IPagedList<AccessToken> GetAccessTokens(IEnumerable<string> tokens, int? page = null, int? pageSize = null, string filter = null)
         {
-            var response = MakeRequest<AccessToken>("access-tokens", new string[] { tokens.Vectorize(), "read" }, new
+            var response = MakeRequest<AccessToken>("access-tokens", new string[] { tokens.Vectorize() }, new
             {
                 page = page,
                 pagesize = pageSize,
         /// <summary>
         /// See: http://api.stackexchange.com/docs/read-access-tokens
         /// </summary>
-        public AccessToken ReadAccessToken(string token, int? page = null, int? pageSize = null, string filter = null)
+        public AccessToken GetAccessToken(string token, int? page = null, int? pageSize = null, string filter = null)
         {
-            return ReadAccessTokens(new string[] { token }, page, pageSize, filter).FirstOrDefault();
+            return GetAccessTokens(new string[] { token }, page, pageSize, filter).FirstOrDefault();
         }
 
         /// <summary>
         /// </summary>
         public Filter CreateFilter(IEnumerable<string> include, IEnumerable<string> exclude, string baseFilter = null, bool? isUnsafe = null)
         {
-            var response = MakeRequest<Filter>("similar", null, new
+            var response = MakeRequest<Filter>("filters/create", null, new
             {
                 include = TryVectorize(include),
                 exclude = TryVectorize(exclude),
         /// </summary>
         public IEnumerable<Filter> GetFilters(IEnumerable<string> filters, string filter = null)
         {
-            var response = MakeRequest<Filter>("similar", new string[] { filters.Vectorize() }, new
+            var response = MakeRequest<Filter>("filter", new string[] { filters.Vectorize() }, new
             {
                 filter = filter
             });