Skip to content

Commit

Permalink
Initial support for Boxcar API
Browse files Browse the repository at this point in the history
Issue #226
  • Loading branch information
amyreese committed Oct 5, 2011
1 parent c21c135 commit 77196be
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions push.cpp
Expand Up @@ -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");
Expand Down

0 comments on commit 77196be

Please sign in to comment.