Permalink
Browse files

Add support for unsubscribing in GoogleReader.API

  • Loading branch information...
igstan committed Oct 24, 2010
1 parent 9222129 commit 745bd9722406cb7513feb6011b576ac519f7afe7
Showing with 12 additions and 0 deletions.
  1. +11 −0 GoogleReader.API/ReaderAccount.cs
  2. +1 −0 GoogleReader.API/ReaderUrls.cs
@@ -110,5 +110,16 @@ public void AddSubscription(string subscriptionUrl)
httpClient.POST(urls.AddSubscription, args);
}
+
+ public void RemoveSubscription(Subscription subscription)
+ {
+ var args = new Dictionary<string, string>()
+ {
+ {"ac", "unsubscribe"},
+ {"s", subscription.Id},
+ };
+
+ httpClient.POST(urls.RemoveSubscription, args);
+ }
}
}
@@ -10,5 +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";
}
}

0 comments on commit 745bd97

Please sign in to comment.