summaryrefslogtreecommitdiffstats
path: root/SendGrid/SendGridMail/Web/IWebApi.cs
diff options
context:
space:
mode:
authorEric Becking <eric.becking@sendgrid.com>2012-01-12 14:28:41 -0700
committerEric Becking <eric.becking@sendgrid.com>2012-01-12 14:28:41 -0700
commitfdca704e24d310c69184902dda41fdebc18fbcb5 (patch)
treef2185d6db3f04ab5337d25b9eb77cb2f692dce83 /SendGrid/SendGridMail/Web/IWebApi.cs
parent26748c95a5092afbe48195710bce1ed3335ba1ee (diff)
downloadsendgrid-csharp-fdca704e24d310c69184902dda41fdebc18fbcb5.zip
sendgrid-csharp-fdca704e24d310c69184902dda41fdebc18fbcb5.tar.gz
sendgrid-csharp-fdca704e24d310c69184902dda41fdebc18fbcb5.tar.bz2
Web Api interface
Diffstat (limited to 'SendGrid/SendGridMail/Web/IWebApi.cs')
-rwxr-xr-xSendGrid/SendGridMail/Web/IWebApi.cs45
1 files changed, 45 insertions, 0 deletions
diff --git a/SendGrid/SendGridMail/Web/IWebApi.cs b/SendGrid/SendGridMail/Web/IWebApi.cs
new file mode 100755
index 0000000..52d4cb2
--- /dev/null
+++ b/SendGrid/SendGridMail/Web/IWebApi.cs
@@ -0,0 +1,45 @@
+using System;
+using System.Collections.Generic;
+
+namespace SendGridMail.Web
+{
+ interface IWebApi
+ {
+ String user { get; set; }
+ String pass { get; set; }
+
+ String GetBounces(int date, String days, DateTime start_date, DateTime end_date, int limit, int offset, int type, String email);
+ void DeleteBounces(DateTime start_date, DateTime end_date, String type, String email);
+ String GetBlocks(int days, DateTime start_date, DateTime end_date, String email);
+ void DeleteBlocks(String email);
+ String GetEmailParse(String hostname, String url);
+ void SetEmailParse(String hostname, String url);
+ void EditEmailParse(String hostname, String url);
+ void DeleteEmailParse(String hostname);
+ String GetNotificationUrl();
+ void SetNotificationUrl(String url);
+ void DeleteNotificationUrl();
+ String GetFilter();
+ void ActivateFilter(String name);
+ void DeactivateFilter(String name);
+ void SetupFilter(String user, String password, Dictionary<String, String> args);
+ String GetFilterSettings(String name);
+ void GetInvalidEmails(int date, int days, DateTime start_date, DateTime end_date, int limit, int offset, String email);
+ void DeleteInvalidEmails(DateTime start_date, DateTime end_date, String email);
+ String CountInvalidEmails(DateTime start_date, DateTime end_date);
+ String GetProfile();
+ void UpdateProfile(String First_name, String last_name, String address, String city, String state, String country, int zip, int phone, String website);
+ void SetUsername(String username);
+ void SetPassword(String password, String confpass);
+ void SetEmail(String email);
+ String GetSpamReports(int date, int days, DateTime start_date, DateTime end_date, int limit, int offset, String email);
+ void DeleteSpamReports(DateTime start_date, DateTime end_date, String email);
+ String GetStats(int days, DateTime start_date, DateTime end_date);
+ String GetAggregateStats();
+ String GetCategoryStats();
+ String GetCategoryStats(String category, int days, DateTime start_date, DateTime end_date);
+ String GetUnsubscribes(int date, int days, DateTime start_date, DateTime end_date, int limit, int offset, String email);
+ void DeleteUnsubscribes(DateTime start_date, DateTime end_date, String email);
+ void AddUnsubscribes(String email);
+ }
+}