Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add support for unsubscribing in GoogleReader.API

  • Loading branch information...
commit 745bd9722406cb7513feb6011b576ac519f7afe7 1 parent 9222129
@igstan authored
View
11 GoogleReader.API/ReaderAccount.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);
+ }
}
}
View
1  GoogleReader.API/ReaderUrls.cs
@@ -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";
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.