Skip to content

Gamesight/copper-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

copper-typescript

A lightweight Typescript library for Copper CRM API -> https://developer.copper.com/

Install

If this is your first time using the Github package repository, you must auth

# Tell npm to use the Github package repository
echo registry=https://npm.pkg.github.com/gamesight > .npmrc

# Install the package
npm install @gamesight/copper-typescript

Usage

import Copper, { Lead } from "@gamesight/copper-typescript"

// initialize Copper with your access token and email
const copper: Copper = new Copper("access_token", "email")

// create a lead
const lead: Lead = {
  name: "John Doe",
  title: "VP marketing"
}
await copper.createLead(lead)

// fetch leads
let leads: Lead[] = await copper.listLeads()