1.0.4 • Published 7 years ago
poyocore-front v1.0.4
poyocore-front
poyocore protocol
PoyoCore is based on http protocol.
- All data received from the server have to be formated in JSON
- Some JSON root attributes may have special behavior
{
"%error%":[],
"%message%":[],
"%script%":[]
}
How to use ?
Asserting your server respects the protocol :
poyoCore.send('/my/api', 'helloWorld', {
parameter1: "value1"
}, console.log, console.log)