
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@chatopera/node-dscrm
Advanced tools
大盛 CRM,精致好用的 CRM 系统。
npm install -i @chatopera/node-dscrm
const Dscrm = require("@chatopera/node-dscrm");
const client = new Dscrm("YOUR_SERVER_BASE_URL",
{grant_type: "client_credentials",
client_id: "YOUR_CLIENT_ID",
client_secret: "YOUR_CLIENT_SECRET"})
其中,YOUR_SERVER_BASE_URL
/YOUR_CLIENT_ID
/YOUR_CLIENT_SECRET
是实例 URL 地址,客户端认证 ID 和密钥。
调用 API 有两种形式,一种是 SDK 已经实现了明确的方法名的;一种是 SDK 没有实现明确方法名,但是大盛 CRM 中已经有了 RestAPI 的。
let resp = await client.getCurrentUser();
await client.command(METHOD, PATH, BODY)
其中,METHOD
可以是 "GET", "POST", "PUT", "DELETE" 等;PATH
是服务基础 URL 追加的部分,比如/Api/V8/user-preferences/1
, 可以携带有params或queryString
; BODY
,发送请求的 JSON 数据。
示例
let ret = await client.command("GET", "/Api/V8/user-preferences/1");
为明确的方法名使用参考 SuiteCRM/api/routes.php。
不同 API 返回的结果都是一个 JSONObject,带有返回的数据。
如果请求出现异常,会抛出Error
,建议用 Try/Catch 获取。
npm i
cp sample.env .env # edit .env with your credentials
npm test
Copyright (2018-2020) 北京华夏春松科技有限公司
FAQs
大盛 CRM nodejs client
The npm package @chatopera/node-dscrm receives a total of 4 weekly downloads. As such, @chatopera/node-dscrm popularity was classified as not popular.
We found that @chatopera/node-dscrm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.