A JS Framework for RCC Interaction via JS.
Go to file
Sushi 6b9eed4b53
Update README.md
2022-07-08 12:00:24 -06:00
.gitattributes Initial commit 2022-06-29 21:07:53 -06:00
README.md Update README.md 2022-07-08 12:00:24 -06:00
rcctalk.js Create rcctalk.js 2022-06-29 21:09:08 -06:00

README.md

JS-RCCServiceSoap

A JS Framework for RCC and JS Interaction

Requires node-fetch

Requires xml-js

RCC if you don't already have it ;) : https://github.com/COM1/RCCService

Examples
    const test = require('./rcctalk')
    
    var openjobresult = await test.OpenJob("Test2","print('test')","200") // JobId, script, and expiration time. Expiration time is optional
    console.dir(openjobresult,{ depth: null })

    var result = await test.GetAllJobs()
    console.dir(result,{ depth: null })
    
    var executeresult = await test.Execute("Test","print('lol')")
    console.dir(executeresult,{ depth: null })

    var closejobresult = await test.CloseJob("Test")
    console.dir(closejobresult,{ depth: null })

    var renewjobresult = await test.RenewLease("Test2","200")
    console.dir(renewjobresult,{ depth: null })

    var getexpirationresult = await test.GetExpiration("Test")
    console.dir(getexpirationresult,{ depth: null })

    var closeexpiredjobsresult = await test.CloseExpiredJobs()
    console.dir(closeexpiredjobs,{ depth: null })

    var closealljobsresult = await test.CloseAllJobs()
    console.dir(closealljobsresult,{ depth: null })