Skip to content

Commit

Permalink
Fix readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
leonelquinteros committed Sep 26, 2019
1 parent 4b938d8 commit ddfdd5c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ import "github.com/leonelquinteros/hubspot"

func main() {
// Create client object with config from environment variables (HUBSPOT_API_HOST, HUBSPOT_API_KEY, HUBSPOT_OAUTH_TOKEN)
c := NewClient(NewClientConfig())
c := hubspot.NewClient(hubspot.NewClientConfig())

// Create new contact
data := ContactsRequest{
Properties: []Property{
Property{
data := hubspot.ContactsRequest{
hubspot.Properties: []hubspot.Property{
hubspot.Property{
Property: "email",
Value: "[email protected]",
},
Property{
hubspot.Property{
Property: "firstname",
Value: "Contact",
},
Property{
hubspot.Property{
Property: "lastname",
Value: "Example",
},
Expand Down

0 comments on commit ddfdd5c

Please sign in to comment.