Monkey-API
Criptext node JS library to call to the REST API of the Monkey Protocol.
Request example to send push notification to a known monkey ID.
let MonkeyApi = ; monkeyApi = "<API-ID>""<API-KEY>"; let dataJSON= users_to:"<MonkeyId1>,<MonkeyId2>" payload:"text": "TeXt received in the push" monkeyApi;
Request example to send a message to a known monkey ID.
let monkeyApi = "<API-ID>""<API-KEY>"; let temporalId=StringMath; const dataJSON= messageData: "app_id":"<API-ID>" "id":temporalId "sid":"<MonkeyIdSender>" "rid":"<MonkeyIdReceiver>" "type":1 // is a text "msg": payloadtext // Sending text with special chars and encoding with Base64 "props": encr:0 encoding:"base64" "datetime": / 1000 "push": JSON monkeyApi;