{"id":23107038,"url":"https://github.com/ganl/mimic-xmlrpc","last_synced_at":"2025-04-03T22:42:33.848Z","repository":{"id":57297246,"uuid":"266165786","full_name":"ganl/mimic-xmlrpc","owner":"ganl","description":"XML-RPC Client for JavaScript https://sourceforge.net/projects/mimic-xmlrpc/","archived":false,"fork":false,"pushed_at":"2020-05-27T00:54:48.000Z","size":776,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T08:03:03.182Z","etag":null,"topics":["xmlrpc","xmlrpc-client","xmlrpc-js"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ganl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-22T17:10:17.000Z","updated_at":"2020-07-16T12:38:01.000Z","dependencies_parsed_at":"2022-09-01T08:41:31.392Z","dependency_job_id":null,"html_url":"https://github.com/ganl/mimic-xmlrpc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganl%2Fmimic-xmlrpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganl%2Fmimic-xmlrpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganl%2Fmimic-xmlrpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganl%2Fmimic-xmlrpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ganl","download_url":"https://codeload.github.com/ganl/mimic-xmlrpc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247092374,"owners_count":20882217,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["xmlrpc","xmlrpc-client","xmlrpc-js"],"created_at":"2024-12-17T01:12:08.759Z","updated_at":"2025-04-03T22:42:33.822Z","avatar_url":"https://github.com/ganl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mimic-xmlrpc\n\nrsync -aiv rsync://mimic-xmlrpc.cvs.sourceforge.net/cvsroot/mimic-xmlrpc/ mimic\n\nMimic (XML-RPC Client for JavaScript) v2.3\nCopyright (C) 2005-2013 Carlos Eduardo Goncalves (cadu.goncalves@gmail.com)\n\nMimic is dual licensed under the MIT (http://opensource.org/licenses/mit-license.php) \nand GPLv3 (http://opensource.org/licenses/gpl-3.0.html) licenses.\n\n## usage\n\n```shell\nyarn add mimic-xmlrpc\nnpm i mimic-xmlrpc\n```\n\n### Synchronous\n\nThe Sync code will now throw an `INVALID_ACCESS_ERR` in Chrome in version 80 : `InvalidAccessError: Failed to execute 'open' on 'XMLHttpRequest': Synchronous`\n\n```javascript\n  import XmlRpcClient from 'mimic-xmlrpc'\n\n  const method = 'node.ping'\n  let request = new XmlRpcClient('https://172.28.128.3:58086/noderpc2/', method)\n  request.crossDomain = true\n\n  request.addParam(23)\n  request.addParam('222')\n  request.addParam([15, 25, 35, 45])\n\n  let response = request.send()\n  console.log(response)\n  console.log(response.parseXML())\n```\n\n### Asynchronous (Need to set timeout)\n\n```javascript\n  import XmlRpcClient from 'mimic-xmlrpc'\n\n  const method = 'rpc.node_version'\n  let request = new XmlRpcClient('http://172.28.128.3:26821/RPC2', method)\n  request.crossDomain = true // --disable-web-security\n\n  request.setTimeout(5000) // ms\n  request.ontimeout = function (e) {\n    console.log(e, 'timeout')\n  }\n  request.callback = function (response) {\n    console.log(response)\n    console.log(response.parseXML())\n  }\n\n  request.addParam(23)\n  request.addParam('222')\n  request.addParam([15, 25, 35, 45])\n  request.send()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganl%2Fmimic-xmlrpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fganl%2Fmimic-xmlrpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganl%2Fmimic-xmlrpc/lists"}