
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
zohobooks-sdk
Advanced tools
A TypeScript-first SDK for seamless interaction with the Zoho Books API. Designed for Node.js environments with full type safety and modern async/await support.
Install the package using your preferred package manager:
# Using pnpm (recommended)
pnpm add zohobooks-sdk
# Using npm
npm install zohobooks-sdk
# Using yarn
yarn add zohobooks-sdk
import { ZohoBooks, APIHost } from "zohobooks-sdk";
const zohoBooks = new ZohoBooks({
host: APIHost.India, // Choose from available regions
clientId: "1000.XXXXXX", // From Zoho Developer Console
clientSecret: "1632...8a5f13", // From Zoho Developer Console
organizationId: "1234567", // Your Zoho Books Organization ID
refreshToken: "1000.XXXXXXX.XXXXXX", // OAuth refresh token
logger: true, // Optional: Enable request/response logging
});
const newContact = await zohoBooks.contacts.create({
contact_name: "Acme Corp",
company_name: "Acme Corporation",
contact_type: "customer",
email: "contact@acme.com",
billing_address: {
address: "123 Main St",
city: "New York",
state: "NY",
zip: "10001",
country: "USA",
},
});
const invoice = await zohoBooks.invoices.create({
customer_id: "460000000026049",
date: "2023-11-15",
line_items: [
{
name: "Annual Subscription",
description: "Premium Plan (Yearly)",
rate: 299,
quantity: 1,
},
],
});
The SDK provides access to all major Zoho Books API resources:
Resource | Methods Available |
---|---|
Contacts | create , get , update , list , delete |
Invoices | create , get , update , list , delete , email |
Estimates | create , get , update , list , delete |
Items | create , get , update , list , delete |
Organizations | get , list |
Payments | create , get , list , delete |
...and more | Full list in documentation |
The SDK handles OAuth 2.0 authentication automatically. You'll need to:
Choose from these available API hosts:
enum APIHost {
UnitedStates = "https://www.zohoapis.com/books/v3",
Europe = "https://www.zohoapis.eu/books/v3",
India = "https://www.zohoapis.in/books/v3",
Australia = "https://www.zohoapis.com.au/books/v3",
Japan = "https://www.zohoapis.jp/books/v3",
China = "https://www.zohoapis.com.cn/books/v3",
}
Contributions are welcome! Please read our Contributing Guide for details.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
SDK for ZohoBooks integration
The npm package zohobooks-sdk receives a total of 33 weekly downloads. As such, zohobooks-sdk popularity was classified as not popular.
We found that zohobooks-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.