Source Destination
-------------------------------------------------------------------
HTTP POST .--------------. XMPP .--------.
------------> | | .------------------> | Jabber |
| | | '--------'
| im.kayac.com |-----+
EMail | | | .--------.
------------> | | '------------------> | iPhone |
'--------------' Apple Push '--------'
Notification (APNs)
im.kayac.com is a web service that provides some notification APIs.
You can easily send notify to your jabber or iphone by HTTP API or Email forwarding
Currently supports as notification sources:
Notification targets:
HTTP POST:
POST /api/post/username HTTP/1.0
Host: im.kayac.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 22
message=Hello%20World!
or more easily way with curl (same as above)
curl -d 'message=Hello World' http://im.kayac.com/api/post/username
See documentation for more detail.
Message should be POSTed to following URL:
http://im.kayac.com/api/post/{username}
POST
Secret segnature is SHA-1 hex digest of {message}+{secretkey}. For example, message is "Hello" and secret key is "SecretKey":
sig=3e287020daaa2771e73ceda2e798c2d576882f22 // sha1_hex( "HelloSecretKey" );
{
"id": null,
"error", "",
"result", "posted"
}