Airgram has vanished from the face of the Internet

See #205.
This commit is contained in:
dgw 2016-09-23 03:23:28 -05:00
parent d5908dc7a0
commit 645f0fe555
1 changed files with 2 additions and 34 deletions

View File

@ -605,26 +605,7 @@ class CPushMod : public CModule
} }
else if (service == "airgram") else if (service == "airgram")
{ {
if (options["target"] == "") PutModule("Error: Airgram service shut down. Please configure another notification provider.");
{
PutModule("Error: target (email) not set");
return;
}
service_host = "api.airgramapp.com";
if (options["username"] != "" && options["secret"] != "")
{
service_url = "/1/send";
service_auth = options["username"] + CString(":") + options["secret"];
}
else
{
service_url = "/1/send_as_guest";
}
params["email"] = options["target"];
params["msg"] = message_content;
} }
else if (service == "slack") else if (service == "slack")
{ {
@ -1417,10 +1398,6 @@ class CPushMod : public CModule
{ {
PutModule("Note: URL requires setting the 'message_uri' option with the full URL"); PutModule("Note: URL requires setting the 'message_uri' option with the full URL");
} }
else if (value == "airgram")
{
PutModule("Note: Airgram requires setting the 'target' with the email address of the recipient");
}
else if (value == "faast") else if (value == "faast")
{ {
PutModule("Note: Faast requires setting the secret to your apikey"); PutModule("Note: Faast requires setting the secret to your apikey");
@ -1756,16 +1733,7 @@ class CPushMod : public CModule
} }
else if (service == "airgram") else if (service == "airgram")
{ {
if (options["username"] == "" || options["secret"] == "" || options["target"] == "") PutModule("Error: Airgram service shut down. Please configure a different notification provider.");
{
PutModule("Error: target, username, and secret must be set");
return;
}
service_host = "api.airgramapp.com";
service_url = "/1/subscribe";
service_auth = options["username"] + CString(":") + options["secret"];
params["email"] = options["target"];
} }
else else
{ {