#Create Campaign Example ##1. Authentication See [Developer API](https://app.mailerlite.com/integrations/api/) and find **API Key** there. ```ruby client = MailerLite::Client.new(api_key: 'my-secret-api-key') ``` ##2. Create a group create a group indicating the receivers. ```ruby group = client.create_group('example_group') ``` ##3. Add user to the created group ```ruby client.create_group_subscriber(group.id, { email: 'an@example.com', fields: {name: 'An Example'}}) ``` ##4. Create a campaign with created group ```ruby campaign = client.create_campaign( type: 'regular', subject: 'Newsletter', from: 'john_smith@example.com', from_name: 'John Smith', groups: [ group.id ], language: 'en' ) ``` ##5. Put content in the campaign ```ruby html = "