UNPKG

@nexon.js/api

Version:

Simple Usage Rest API Nexon

1 lines 1.93 kB
const _0x3917cf=_0x1fdb;function _0x1fdb(_0x56f531,_0x1909e8){const _0x197bb0=_0xc252();return _0x1fdb=function(_0x26d7b2,_0x29d8a7){_0x26d7b2=_0x26d7b2-(-0x1d1d+-0x7ed+-0x654*-0x6);let _0x723d2=_0x197bb0[_0x26d7b2];return _0x723d2;},_0x1fdb(_0x56f531,_0x1909e8);}(function(_0x1d2ea9,_0x410879){const _0x28f738=_0x1fdb,_0x208685=_0x1d2ea9();while(!![]){try{const _0x1bdb24=-parseInt(_0x28f738(0xf4))/(0x1f3*-0x13+0x1c64+-0xf6*-0x9)+-parseInt(_0x28f738(0xfc))/(-0xd37+-0x1689+-0x11e1*-0x2)+-parseInt(_0x28f738(0xf1))/(0x761+-0x1*-0xa45+-0x285*0x7)+-parseInt(_0x28f738(0xfb))/(-0x1faf+0x1554+-0xb1*-0xf)+-parseInt(_0x28f738(0xf3))/(0x138d*-0x1+0x12e3+-0x19*-0x7)*(-parseInt(_0x28f738(0xf8))/(-0xf*0xc3+-0x3*-0xcb3+-0x1aa6))+-parseInt(_0x28f738(0xf5))/(-0x8a*0x31+0x15e0+0x491*0x1)*(-parseInt(_0x28f738(0xf6))/(0xa92+0x1689+-0x2113))+parseInt(_0x28f738(0xf0))/(-0xa15+-0x1a97+0x24b5);if(_0x1bdb24===_0x410879)break;else _0x208685['push'](_0x208685['shift']());}catch(_0x40d5cf){_0x208685['push'](_0x208685['shift']());}}}(_0xc252,0x313*-0x32c+0x642ac+-0x1*-0x9c8b3));const axios=require(_0x3917cf(0xef));module[_0x3917cf(0xfe)]=class NexonApi{constructor(_0x4186cf,_0x3a84a7){const _0x36de81=_0x3917cf;this[_0x36de81(0xfd)]=_0x3a84a7,this[_0x36de81(0xff)]=_0x4186cf;}async[_0x3917cf(0xf9)](_0x543f74,_0x40c8bc){const _0x5014c3=_0x3917cf;try{const _0x1bae1e=await axios[_0x5014c3(0xee)](''+this[_0x5014c3(0xff)]+_0x543f74,{'params':{..._0x40c8bc,'apikey':this[_0x5014c3(0xfd)]}});return _0x1bae1e[_0x5014c3(0xf2)];}catch(_0x5bbffd){throw new Error(_0x5014c3(0xf7)+_0x5014c3(0x100)+_0x5bbffd[_0x5014c3(0xfa)]);}}};function _0xc252(){const _0x1d4e32=['t\x20failed:\x20','get','axios','7184394XxztYp','1251300tQRipw','data','1576780RHWkui','18208dnEhmW','56jBxjfO','295888vNlIPF','API\x20reques','6AxfySx','nexon','message','1492964wPtXtv','377036vuFXWm','apiKey','exports','baseURL'];_0xc252=function(){return _0x1d4e32;};return _0xc252();}