Skip to content

Commit

Permalink
Merge pull request #16 from libmartinito/update-readme
Browse files Browse the repository at this point in the history
Updated docs for assigning/unassigning users to/from groups
  • Loading branch information
dinomh authored Nov 20, 2023
2 parents f1d1645 + b6acbcf commit f0685c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ require "mailerlite-ruby"
# Intialize the class
groups = MailerLite::Groups.new

subscribers.assign_subscriber(subscriber_id:111222, group_id:1234567)
groups.assign_subscriber(subscriber:111222, group_id:1234567)
```

### Unassign subscriber from a group
Expand All @@ -256,7 +256,7 @@ require "mailerlite-ruby"
# Intialize the class
groups = MailerLite::Groups.new

subscribers.unassign_subscriber(subscriber_id:111222, group_id:1234567)
groups.unassign_subscriber(subscriber:111222, group_id:1234567)
```

## Segments
Expand Down Expand Up @@ -798,4 +798,4 @@ bundle i
bundle exec yardoc 'lib/**/*.rb'
```

This will generate html docs in the doc directory which can be opened up in any browser. Navigate to index.html and open it up.
This will generate html docs in the doc directory which can be opened up in any browser. Navigate to index.html and open it up.

0 comments on commit f0685c2

Please sign in to comment.