Skip to content

Commit

Permalink
Merge pull request #23 from montekaka/main
Browse files Browse the repository at this point in the history
fix a typo
  • Loading branch information
dinomh authored Nov 22, 2024
2 parents 12186cc + 44aa4ce commit 975d55d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ require "mailerlite-ruby"
# Intialize the class
groups = MailerLite::Groups.new

groups.list(limit:10, page:1, filter:{'name': 'My'}, sort:'name')
groups.get(limit:10, page:1, filter:{'name': 'My'}, sort:'name')
```

### Create a group
Expand Down Expand Up @@ -483,7 +483,7 @@ require "mailerlite-ruby"
campaigns = MailerLite::Campaigns.new

campaigns.update(
campaign_id: 1233455,
campaign_id: 1233455,
name: "New Campaign Name",
language_id: 2,
emails: [{
Expand Down Expand Up @@ -703,7 +703,7 @@ webhooks.create(
'subscriber.created',
'subscriber.updated',
'subscriber.unsubscribed'
],
],
url:'https://my-url.com',
name: 'Webhook name'
)
Expand All @@ -720,12 +720,12 @@ require "mailerlite-ruby"
webhooks = MailerLite::Webhooks.new

webhooks.update(
webhook_id: 123456,
webhook_id: 123456,
events:[
'subscriber.created',
'subscriber.updated',
'subscriber.unsubscribed'
],
],
url:'https://my-url.com',
name: 'Webhook name',
enabled: false
Expand Down Expand Up @@ -784,7 +784,7 @@ campaigns.languages()
# Testing

```bash
bundle i
bundle i
bundle exec rspec spec/*rspec.rb
```

Expand All @@ -794,7 +794,7 @@ The fixtures for the test have been recorded using vcr and are available in the
# Generate Docs

```bash
bundle i
bundle i
bundle exec yardoc 'lib/**/*.rb'
```

Expand Down

0 comments on commit 975d55d

Please sign in to comment.