Skip to content

Commit 5e35bb2

Browse files
committed
Update README.md with documentation for creating deals
1 parent 1e538e0 commit 5e35bb2

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ contact.update!({firstname: "First", lastname: "Last"})
6565
```ruby
6666
Hubspot::Contact.create_or_update!([{vid: '12345', firstname: 'First', lastname: 'Last'}])
6767
```
68+
69+
### Create a deal
70+
71+
```ruby
72+
Hubspot::Deal.create!(nil, [company.vid], [contact.vid], pipeline: 'default', dealstage: 'initial_contact')
73+
```
74+
6875
## Contributing to hubspot-ruby
6976

7077
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.

0 commit comments

Comments
 (0)