twilio report poc
authorMichael Wallner <mike@php.net>
Tue, 2 Jul 2013 20:03:50 +0000 (22:03 +0200)
committerMichael Wallner <mike@php.net>
Tue, 2 Jul 2013 20:03:50 +0000 (22:03 +0200)
lib/btr/report/twilio.mk [new file with mode: 0644]

diff --git a/lib/btr/report/twilio.mk b/lib/btr/report/twilio.mk
new file mode 100644 (file)
index 0000000..e420833
--- /dev/null
@@ -0,0 +1,11 @@
+.PHONY: all
+.SUFFIXES:
+
+all:
+       curl "https://api.twilio.com/2010-04-01/Accounts/$(TWILIO_ACCOUNT)/SMS/Messages.json" \
+       --data-urlencode "From=$(TWILIO_NUMBER)" \
+       --data-urlencode "To=$(REPORT_NUMBER)" \
+       --data-urlencode "Body=[btr] $(BUILD) $(REPORT)" \
+       -u $(TWILIO_ACCOUNT):$(TWILIO_TOKEN)
+
+# vim: noet