https://github.com/bold-commerce/go-hubspot
HubSpot Golang client
https://github.com/bold-commerce/go-hubspot
golang hubspot
Last synced: 5 months ago
JSON representation
HubSpot Golang client
- Host: GitHub
- URL: https://github.com/bold-commerce/go-hubspot
- Owner: bold-commerce
- License: apache-2.0
- Created: 2017-12-17T21:48:30.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-06T18:35:20.000Z (over 2 years ago)
- Last Synced: 2024-06-19T00:31:31.415Z (over 1 year ago)
- Topics: golang, hubspot
- Language: Go
- Size: 16.6 KB
- Stars: 9
- Watchers: 5
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://travis-ci.org/bold-commerce/go-hubspot)
# go-hubspot
[Go](https://golang.org/) client for [HubSpot](https://app.hubspot.com)*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](https://onsi.github.io/ginkgo) and [gomega](https://onsi.github.io/gomega/) and run:```
ginkgo -r
```## Usage
```go
package mainimport (
"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())
}
}
```