mirror of https://github.com/SeanOMik/znc-push.git
parent
c21c135d78
commit
77196be1ca
19
push.cpp
19
push.cpp
|
@ -246,6 +246,25 @@ class CPushMod : public CModule
|
|||
params["title"] = title;
|
||||
params["uri"] = uri;
|
||||
}
|
||||
else if (service == "boxcar")
|
||||
{
|
||||
if (options["username"] == "")
|
||||
{
|
||||
PutModule("Error: username not set");
|
||||
return;
|
||||
}
|
||||
|
||||
CString boxcar_api_key = "puSd2qp2gCDZO7nWkvb9";
|
||||
CString boxcar_api_secret = "wLQQKSyGybIOkggbiKipefeYGLni9B3FPZabopHp";
|
||||
|
||||
service_host = "boxcar.io";
|
||||
service_url = "/devices/providers/" + boxcar_api_key + "/notifications";
|
||||
|
||||
params["email"] = options["username"];
|
||||
params["notification[from_screen_name]"] = context;
|
||||
params["notification[message]"] = short_message;
|
||||
params["notification[source_url]"] = uri;
|
||||
}
|
||||
else
|
||||
{
|
||||
PutModule("Error: service type not selected");
|
||||
|
|
Loading…
Reference in New Issue