Cobub Razor
Cobub Toaster
Other Links
Cobub Razor
Cobub Toaster
Other Links
這是本文檔舊的修訂版!
The document introduces usage of PNS Web interface.
Here are the concepts of user channel and tag channel, which must be clarified:
Developers need to POST data to Web interface, and the Web interface will return result in JSON.
If the following is configured in the file of toaster.conf:
[web] bind localhost:8080
Then you can call Web Interface using the following Linux command, or call it by programming of HTTP:
curl –X POST –d POST_DATA http://localhost:8080/METHOD_NAME
inside
POST_DATA is POST data to PNS METHOD_NAME is the method name to be called
METHOD_NAME: pub
POST_DATA:
"expired": "1403521931", "appid": "XXX", "channel": "xxx@qq.com", "channel": "xxx@gmail.com", "data": "hello world"