Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@praxent/praxent-crm

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@praxent/praxent-crm

CRM methods using Hubspot

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

Praxent CRM Package

This package is to assist in the sending of information to your specified CRM. Right now this package is only built out for HubSpot but future iterations could expand that scope.

How to Use

HubSpot Integration

You can use the package as follows:

const HubspotIntegration = require('@praxent/praxent-crm')

async exampleFunction() => {
  try {
    const hubspotIntegration = HubspotIntegration({ apiKey }) // appId required for webhooks

    const response = await hubspotIntegration.fetch({ action: 'createContact', data })
    return {
      success: true,
      data: response,
    }
  } catch(error) {
    console.warn(error)
    return {
      success: false,
      error,
    }
  }
}

The data variable is whatever data you want to send to HubSpot formatted for your specific project.

Actions Types:

createContact

  • Hubspot Reference: https://developers.hubspot.com/docs/methods/contacts/create_contact
{
  properties: [
    {
      property: string,
      value: any,
    }
    ...
  ]
}

createDeal

{
  associations: {
    associatedVids: [int],
  },
  properties: [
    {
      name: string,
      value: any,
    }
    ...
  ]
}

searchContactByEmail

{
  email: string,
}

viewSettings

{}

updateSettings

{
  webhookUrl: string, // requires https
  maxConcurrentRequests: int, // greater than 5
}

createSubscriptions

{
  subscriptionDetails: {
    subscriptionType: string,
    propertyName: string,
  },
  enabled: bool,
}

getSubscriptions

{}

updateSubscriptions

{
  subscriptionId: int,
  data: {
    enabled: bool,
  }
}

deleteSubscriptions

{}

Keywords

FAQs

Package last updated on 02 Apr 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc