Skip to content

bold-commerce/go-hubspot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

go-hubspot

Go client for HubSpot

Note: This currently does not implement all HubSpot API endpoints, however pull requests are welcome

Install

go get github.com/bold-commerce/go-hubspot

Unit Tests

To run the unit tests, install ginkgo and gomega and run:

ginkgo -r

Usage

package main

import (
	"log"

	"github.com/bold-commerce/go-hubspot/hubspot"
)

func main() {
  client := hubspot.NewClient("https://api.hubapi.com", "my-api-key")

  // send single email
  emailId := 12345678
  err := client.SingleEmail(emailId, "tyler.durden@gmail.com")
  if err != nil {
    log.Fatalf("hubspot error: %s", err.Error())
  }
}