Skip to content

Commit

Permalink
Can easily delete an aliased scheduled push.
Browse files Browse the repository at this point in the history
  • Loading branch information
pr1001 committed Feb 5, 2011
1 parent 33bb30f commit 363f8ae
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,11 @@ class UrbanAirship(app_token: String, app_secret: Box[String], app_master_secret
Helpers.tryo(http(req as_str))
}) ?~ "App Master Secret Required"

def delete_scheduled(alias: String): Box[Unit] = app_master_secret.flatMap(secret => {
val req = scheduledReq.DELETE / "alias" / alias as (app_token, secret)
Helpers.tryo(http(req >|))
}) ?~ "App Master Secret Required"

def statistics(start: String, end: String): Box[List[HourlyStatistics]] = app_master_secret.flatMap(secret => {
val req = statisticsReq <<? Map("start" -> start, "end" -> end) as (app_token, secret)
Helpers.tryo(http(req ># (json => {
Expand Down

0 comments on commit 363f8ae

Please sign in to comment.