urbit/sur/tiebout.hoon
Logan Allen efc1873b77
Tiebout - Apple Push Notification Server App (#1084)
* App for sending Apple Push Notifications

* First pass at Hall subscription logic

* Tiebout app works end to end, can receive actions via Eyre, and can resubscribe to circles

* style changes for tiebout
2019-03-01 10:37:16 -08:00

22 lines
544 B
Plaintext

/- hall
=, eyre
::
::
|%
+$ notification
$: token=@t
topic=@t
payload=(map @t json)
==
::
+$ action
$% [%token tok=@t] :: set device token
[%king kng=@p] :: set ship to route notifications through
[%baseurl bur=@t] :: set url to send notifications to
[%notify not=notification] :: send notification
[%add-circle nom=name:hall] :: send notifications for this circle
[%del-circle nom=name:hall] :: stop sending for this circle
==
::
--