Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@apideck/node
Advanced tools
Install the latest SDK using npm:
$ npm install apideck
or Yarn
$ yarn add apideck
The module supports all Apideck API endpoints. For complete information about the API, head to the docs. All endpoints require a valid apiKey so that's the only required parameter to initialize a new Apideck client:
import Apideck from 'apideck';
const apideckClient = new Apideck({
apiKey: <insert-api-key-here>,
applicationId: <insert-application-id-here>,
consumerId: <insert-consumer-id-here>,
serviceId: <insert-service-id-here>
});
All top level parameters (except for apiKey) can be overriden in specific resource calls.
const response = await apideckClient.crm.contacts.list({
limit: '10',
serviceId: '<insert-service-id-here>',
consumerId: <insert-consumer-id-here>
})
Once you created a new Apideck client you can use following methods:
import Apideck from 'apideck';
const apideckClient = new Apideck({
apiKey: <insert-api-key-here>,
applicationId: <insert-application-id-here>,
consumerId: <insert-consumer-id-here>,
serviceId: <insert-service-id-here>
});
apideckClient.companies.list(parameters);
apideckClient.companies.retrieve(parameters);
apideckClient.companies.create(parameters);
apideckClient.companies.update(parameters);
apideckClient.companies.delete(parameters);
apideckClient.contacts.list(parameters);
apideckClient.contacts.retrieve(parameters);
apideckClient.contacts.create(parameters);
apideckClient.contacts.update(parameters);
apideckClient.contacts.delete(parameters);
apideckClient.leads.list(parameters);
apideckClient.leads.retrieve(parameters);
apideckClient.leads.create(parameters);
apideckClient.leads.update(parameters);
apideckClient.leads.delete(parameters);
apideckClient.opportunities.list(parameters);
apideckClient.opportunities.retrieve(parameters);
apideckClient.opportunities.create(parameters);
apideckClient.opportunities.update(parameters);
apideckClient.opportunities.delete(parameters);
Retrieving a list of all contacts and updating the first record with a new address.
import { Apideck, PhoneNumberTypeEnum } from 'apideck'
const apideckClient = new Apideck({
apiKey: <insert-api-key-here>,
applicationId: <insert-application-id-here>,
consumerId: <insert-consumer-id-here>,
serviceId: <insert-service-id-here>
});
const { data } = await apideckClient.crm.contacts.list({
limit: 10
})
const result = await apideckClient.crm.contacts.update({
id: data[0].id!,
contact: {
name: "John Doe",
firstName: "John",
lastName: "Doe",
addresses: [{
city: "Hoboken",
line1: "Streetname 19",
state: "NY"
}],
phoneNumbers: [{
number: '0486565656',
phoneType: PhoneNumberTypeEnum.Home
}]
}
})
console.info(result)
Open an issue!
FAQs
Apideck Node.js SDK
We found that @apideck/node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.