Permalink
Browse files

Add support for subscription renaming in GoogleReader.API

  • Loading branch information...
igstan committed Oct 25, 2010
1 parent bc28425 commit 3633193e2d8688e7abf623176273440e64bdce5a
Showing with 14 additions and 2 deletions.
  1. +13 −1 GoogleReader.API/ReaderAccount.cs
  2. +1 −1 GoogleReader.API/ReaderUrls.cs
@@ -119,7 +119,19 @@ public void RemoveSubscription(Subscription subscription)
{"s", subscription.Id},
};
- httpClient.POST(urls.RemoveSubscription, args);
+ httpClient.POST(urls.EditSubscription, args);
+ }
+
+ public void RenameSubscription(Subscription subscription, string newName)
+ {
+ var args = new Dictionary<string, string>()
+ {
+ {"ac", "edit"},
+ {"s", subscription.Id},
+ {"t", newName}
+ };
+
+ httpClient.POST(urls.EditSubscription, args);
}
}
}
@@ -10,6 +10,6 @@ public class ReaderUrls
public string SubscriptionList = "https://www.google.com/reader/api/0/subscription/list";
public string SubscriptionItems = "https://www.google.com/reader/api/0/stream/contents/";
public string AddSubscription = "http://www.google.com/reader/api/0/subscription/quickadd";
- public string RemoveSubscription = "http://www.google.com/reader/api/0/subscription/edit";
+ public string EditSubscription = "http://www.google.com/reader/api/0/subscription/edit";
}
}

0 comments on commit 3633193

Please sign in to comment.