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.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by33.33%
Maintainers
3
Weekly downloads
 
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,
}

webhooks.settings.view

{}

webhooks.settings.update

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

webhooks.subscriptions.create

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

webhooks.subscriptions.get

{}

webhooks.subscriptions.update

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

webhooks.subscriptions.delete

{}

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