ReplitClient.js icon indicating copy to clipboard operation
ReplitClient.js copied to clipboard

How do i declare the token ?

Open kuro0ni opened this issue 9 years ago • 2 comments

I followed the documentation and to create a Replit object i need to pass a token. And for the token there are two attributes time_created and mag_mac. What should i do to get values for those two attributes ? ps: I am using this library on an asp.net mvc project

kuro0ni avatar Oct 11 '16 07:10 kuro0ni

There should be a Nodejs program on the docs that generates the token, port it to ASP

amasad avatar Oct 12 '16 02:10 amasad

Thank you for your reply i managed to do that. Anyways i want to pass command line arguments to my cpp code but it does not work.

repl.evaluateOnce( code, { stdin: 'argument1', stdout: function (output) { console.log(output); }
}).then( function success(result) { if (result.error) { console.log('Error : ', result.error); } else { console.log('Result : ', result.data); } }, function error(error) { console.error('Error connecting to repl.it'); } );

i passed the argument1 string as stdin but it didnt work. Where did i went wrong ?

kuro0ni avatar Oct 12 '16 06:10 kuro0ni