2025-01-01 12:12:42 +00:00
// coupang.js
// Namhyeon Go <abuse@catswords.net>
// https://github.com/gnh1201/welsonjs
//
// ***SECURITY NOTICE***
// Due to potential security issues, the Public API URL is not provided. If you need to request access, please refer to the project's contact information.
// You can download the server-side script that implements this functionality from the link below:
// https://github.com/gnh1201/caterpillar
//
var JsonRpc2 = require ( "lib/jsonrpc2" ) ;
function search ( s ) {
var rpc = JsonRpc2 . create ( JsonRpc2 . DEFAULT _JSONRPC2 _URL ) ;
var result = rpc . invoke ( "relay_invoke_method" , {
"callback" : "load_script" ,
"requires" : [
2025-01-22 05:28:02 +00:00
"https://scriptas.catswords.net/coupang.class.php"
2025-01-01 12:12:42 +00:00
] ,
"args" : [
"$search = new CoupangProductSearch(); return $search->searchProducts('" + s + "')"
]
} , "" ) ;
return result . data ;
}
exports . search = search ;
2025-01-22 05:28:02 +00:00
exports . VERSIONINFO = "Coupang Product Search Client (coupang.js) version 0.1.1" ;
2025-01-01 12:12:42 +00:00
exports . AUTHOR = "abuse@catswords.net" ;
exports . global = global ;
exports . require = global . require ;